nix: change from pkgs.system to stdenv.hostPlatform.system

This commit is contained in:
Christoph Hollizeck 2025-11-07 14:40:05 +01:00
parent e5143c2000
commit c57ec4fc2f
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
14 changed files with 241 additions and 129 deletions

View file

@ -33,7 +33,7 @@
...
}:
let
hyprlock-package = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
hyprlock-package = inputs.hyprlock.packages.${pkgs.stdenv.hostPlatform.system}.hyprlock;
in
{
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {

View file

@ -9,7 +9,7 @@
...
}:
let
zenbrowser = inputs.zen-browser.packages."${pkgs.system}".default;
zenbrowser = inputs.zen-browser.packages."${pkgs.stdenv.hostPlatform.system}".default;
in
{

View file

@ -8,7 +8,7 @@
...
}:
let
hyprland-package = inputs.hyprland.packages.${pkgs.system}.hyprland;
hyprland-package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
focus-1password = pkgs.writeShellScriptBin "focus-or-open-1pass" ''
running=$(hyprctl -j clients | jq -r '.[] | select(.class == "1password") | .workspace.id')
@ -64,7 +64,7 @@
hyprland = {
enable = true;
package = hyprland-package;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
withUWSM = true;
};
};
@ -124,14 +124,14 @@
...
}:
let
hyprland-package = inputs.hyprland.packages.${pkgs.system}.hyprland;
hyprland-package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
in
{
config = lib.mkIf osConfig.programs.hyprland.enable {
wayland.windowManager.hyprland = {
enable = true;
package = hyprland-package;
plugins = [ inputs.hy3.packages.${pkgs.system}.hy3 ];
plugins = [ inputs.hy3.packages.${pkgs.stdenv.hostPlatform.system}.hy3 ];
systemd.variables = [ "--all" ];
settings = {
"$mod" = "SUPER";

View file

@ -6,13 +6,13 @@
programs.niri = {
enable = true;
package = inputs.niri-flake.packages.${pkgs.system}.niri-unstable;
package = inputs.niri-flake.packages.${pkgs.stdenv.hostPlatform.system}.niri-unstable;
};
environment.systemPackages = with pkgs; [
kitty
inputs.niri-flake.packages.${pkgs.system}.xwayland-satellite-unstable
inputs.niri-flake.packages.${pkgs.stdenv.hostPlatform.system}.xwayland-satellite-unstable
wl-clipboard
xsel