From 0b26b1eed68c5ece7aa6f93f3ef4df9bac9b7cdf Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 29 Dec 2022 22:19:15 -0800 Subject: [PATCH] s/pkgs.system/pkgs.hostPlatform.system/g --- flake.nix | 4 ++-- nix/hm-module.nix | 2 +- nix/module.nix | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index ca8682eb..4d0e83a5 100644 --- a/flake.nix +++ b/flake.nix @@ -57,8 +57,8 @@ mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"]; }); - xdg-desktop-portal-hyprland = inputs.xdph.packages.${prev.system}.default.override { - hyprland-share-picker = inputs.xdph.packages.${prev.system}.hyprland-share-picker.override {inherit hyprland;}; + xdg-desktop-portal-hyprland = inputs.xdph.packages.${prev.hostPlatform.system}.default.override { + hyprland-share-picker = inputs.xdph.packages.${prev.hostPlatform.system}.hyprland-share-picker.override {inherit hyprland;}; }; }; diff --git a/nix/hm-module.nix b/nix/hm-module.nix index fc9f6842..b6eeba8a 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -5,7 +5,7 @@ self: { ... }: let cfg = config.wayland.windowManager.hyprland; - defaultHyprlandPackage = self.packages.${pkgs.system}.default.override { + defaultHyprlandPackage = self.packages.${pkgs.hostPlatform.system}.default.override { enableXWayland = cfg.xwayland.enable; hidpiXWayland = cfg.xwayland.hidpi; nvidiaPatches = cfg.nvidiaPatches; diff --git a/nix/module.nix b/nix/module.nix index bb577d8e..6ddedfdc 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -8,7 +8,7 @@ inputs: { with lib; let cfg = config.programs.hyprland; - defaultHyprlandPackage = inputs.self.packages.${pkgs.system}.default.override { + defaultHyprlandPackage = inputs.self.packages.${pkgs.hostPlatform.system}.default.override { enableXWayland = cfg.xwayland.enable; hidpiXWayland = cfg.xwayland.hidpi; nvidiaPatches = cfg.nvidiaPatches; @@ -94,8 +94,8 @@ in { enable = mkDefault true; # xdg-desktop-portal-hyprland extraPortals = lib.mkIf (cfg.package != null) [ - (inputs.xdph.packages.${pkgs.system}.xdg-desktop-portal-hyprland.override { - hyprland-share-picker = inputs.xdph.packages.${pkgs.system}.hyprland-share-picker.override { + (inputs.xdph.packages.${pkgs.hostPlatform.system}.xdg-desktop-portal-hyprland.override { + hyprland-share-picker = inputs.xdph.packages.${pkgs.hostPlatform.system}.hyprland-share-picker.override { hyprland = cfg.package; }; })