diff --git a/snowfall-lib/checks/default.nix b/snowfall-lib/checks/default.nix index 9a59769..cf6e844 100644 --- a/snowfall-lib/checks/default.nix +++ b/snowfall-lib/checks/default.nix @@ -51,6 +51,6 @@ in { aliased-checks = mapAttrs (name: value: checks-without-aliases.${value}) alias; checks = checks-without-aliases // aliased-checks // overrides; in - filterPackages pkgs.system checks; + filterPackages pkgs.stdenv.hostPlatform.system checks; }; } diff --git a/snowfall-lib/home/default.nix b/snowfall-lib/home/default.nix index 174d578..b1f71a1 100644 --- a/snowfall-lib/home/default.nix +++ b/snowfall-lib/home/default.nix @@ -262,7 +262,7 @@ in { extra-special-args-module = args @ { config, pkgs, - system ? pkgs.system, + system ? pkgs.stdenv.hostPlatform.system, target ? system, format ? "home", host ? "", @@ -297,7 +297,7 @@ in { options, pkgs, host ? "", - system ? pkgs.system, + system ? pkgs.stdenv.hostPlatform.system, ... }: let host-matches = diff --git a/snowfall-lib/module/default.nix b/snowfall-lib/module/default.nix index 1c09e81..c17fb6e 100644 --- a/snowfall-lib/module/default.nix +++ b/snowfall-lib/module/default.nix @@ -42,7 +42,7 @@ in { # NOTE: home-manager *requires* modules to specify named arguments or it will not # pass values in. For this reason we must specify things like `pkgs` as a named attribute. ${metadata.name} = args @ {pkgs, ...}: let - system = args.system or args.pkgs.system; + system = args.system or args.pkgs.stdenv.hostPlatform.system; target = args.target or system; format = let diff --git a/snowfall-lib/package/default.nix b/snowfall-lib/package/default.nix index 585708f..a0d8871 100644 --- a/snowfall-lib/package/default.nix +++ b/snowfall-lib/package/default.nix @@ -68,6 +68,6 @@ in { aliased-packages = mapAttrs (name: value: packages-without-aliases.${value}) alias; packages = packages-without-aliases // aliased-packages // overrides; in - filterPackages pkgs.system packages; + filterPackages pkgs.stdenv.hostPlatform.system packages; }; } diff --git a/snowfall-lib/shell/default.nix b/snowfall-lib/shell/default.nix index 20668dc..02ee0a5 100644 --- a/snowfall-lib/shell/default.nix +++ b/snowfall-lib/shell/default.nix @@ -51,6 +51,6 @@ in { aliased-shells = mapAttrs (name: value: shells-without-aliases.${value}) alias; shells = shells-without-aliases // aliased-shells // overrides; in - filterPackages pkgs.system shells; + filterPackages pkgs.stdenv.hostPlatform.system shells; }; }