remove deprecated system passing

fixes
'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'

Wherever possible, it's best to reference the hostPlatform of the
nixpkgs instance directly via `config`. This is only possible in NixOS
systems though, for standalon home-manager configs we need to get that
value through `pkgs.stdenv`.
This commit is contained in:
Trolli Schmittlauch 2025-12-29 02:25:50 +01:00
parent 411c7642ea
commit b0093ef58f
13 changed files with 12 additions and 23 deletions

View file

@ -80,14 +80,11 @@
system: extraModules:
nixpkgs.lib.nixosSystem rec {
modules = (defaultModules system) ++ extraModules;
inherit system;
specialArgs = {
inherit system;
};
};
mkHomeManager =
confName: user: system: # unfortunately, home-manager configs are still system-specific
home-manager.lib.homeManagerConfiguration {
# XXX: when can we move to hostPlatform?
pkgs = import (mkNixpkgs-patched system) { inherit system; };
modules = [
{
@ -102,7 +99,7 @@
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {
inherit inputs system;
inherit inputs;
};
};
treefmtConf =
@ -200,7 +197,7 @@
exit 0
fi
${
inputs.home-manager.packages.${pkgs.system}.home-manager
inputs.home-manager.packages.${system}.home-manager
}/bin/home-manager --flake "${self}#$profile" "$@"
''}/bin/hm";
};