Nix/module: fix system when config.allowAlias is false

This commit is contained in:
Mihai Fufezan 2023-08-16 13:39:20 +03:00
parent 19c4855afc
commit 78fa8adadc
No known key found for this signature in database
GPG key ID: 5899325F2F120900

View file

@ -6,9 +6,10 @@ inputs: {
}:
with lib; let
cfg = config.programs.hyprland;
inherit (pkgs.stdenv.hostPlatform) system;
finalPortalPackage = cfg.portalPackage.override {
hyprland-share-picker = inputs.xdph.packages.${pkgs.system}.hyprland-share-picker.override {
hyprland-share-picker = inputs.xdph.packages.${system}.hyprland-share-picker.override {
hyprland = cfg.finalPackage;
};
};
@ -30,7 +31,7 @@ in {
'';
};
package = mkPackageOptionMD inputs.self.packages.${pkgs.system} "hyprland" { };
package = mkPackageOptionMD inputs.self.packages.${system} "hyprland" { };
finalPackage = mkOption {
type = types.package;
@ -47,7 +48,7 @@ in {
'';
};
portalPackage = mkPackageOptionMD inputs.xdph.packages.${pkgs.system} "xdg-desktop-portal-hyprland" {};
portalPackage = mkPackageOptionMD inputs.xdph.packages.${system} "xdg-desktop-portal-hyprland" {};
xwayland.enable = mkEnableOption (mdDoc "support for XWayland") // {default = true;};