diff options
author | Mihai Fufezan <[email protected]> | 2023-08-16 13:39:20 +0300 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2023-08-16 13:39:20 +0300 |
commit | 78fa8adadc146a7efeebf63438c1140662484fba (patch) | |
tree | 8620257be121074f0751445fa42a68d87e883bb7 /nix | |
parent | 19c4855afce7e4dfa316cbd40f2c991fd3f87e0b (diff) | |
download | Hyprland-78fa8adadc146a7efeebf63438c1140662484fba.tar.gz Hyprland-78fa8adadc146a7efeebf63438c1140662484fba.zip |
Nix/module: fix system when config.allowAlias is false
Diffstat (limited to 'nix')
-rw-r--r-- | nix/module.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nix/module.nix b/nix/module.nix index b83f6987..2dd173c3 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -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;}; |