about summary refs log tree commit diff
path: root/hosts/default.nix
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2022-06-20 17:41:39 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-20 17:41:39 +0200
commit89a7047535f9d6ea3244d11e021a5c47357cd004 (patch)
tree26d2a3d17c5aa8f97ec43d8ad380ccf3f065b9b0 /hosts/default.nix
parentMove overlays under folders (diff)
downloadnixos-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.nix7
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) ];
           };