diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2022-06-20 17:41:39 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-20 17:41:39 +0200 |
commit | 89a7047535f9d6ea3244d11e021a5c47357cd004 (patch) | |
tree | 26d2a3d17c5aa8f97ec43d8ad380ccf3f065b9b0 /hosts/default.nix | |
parent | Move overlays under folders (diff) | |
download | nixos-config-89a7047535f9d6ea3244d11e021a5c47357cd004.tar.gz nixos-config-89a7047535f9d6ea3244d11e021a5c47357cd004.tar.bz2 nixos-config-89a7047535f9d6ea3244d11e021a5c47357cd004.zip |
Move specialArgs to its own variable in mkHost
Diffstat (limited to 'hosts/default.nix')
-rw-r--r-- | hosts/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 83d682f..289caa5 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -12,12 +12,11 @@ let ]; }; secrets = import ../secrets; + extraArgs = { inherit pkgs inputs user secrets hostname; }; in nixpkgs.lib.nixosSystem { inherit system; - specialArgs = { - inherit pkgs inputs user secrets hostname; - }; + specialArgs = extraArgs; modules = [ ./configuration.nix ./${hostname} @@ -25,7 +24,7 @@ let { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit pkgs user secrets hostname inputs; }; + home-manager.extraSpecialArgs = extraArgs; home-manager.users.${user} = { imports = [ ./home.nix ] ++ [ (import ./${ hostname }/home.nix) ]; }; |