summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index b2337d99..597ac14a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -176,11 +176,17 @@
176 inherit hostname; 176 inherit hostname;
177 sshUser = "root"; 177 sshUser = "root";
178 178
179 profiles.system = { 179 profilesOrder = ["system"]; # system first
180 path = deploy-rs.lib.${self.nixosConfigurations.${hostname}.config.nixpkgs.system}.activate.nixos self.nixosConfigurations.${hostname}; 180 profiles = {
181 }; 181 system = {
182 path = deploy-rs.lib.${self.nixosConfigurations.${hostname}.config.nixpkgs.system}.activate.nixos self.nixosConfigurations.${hostname};
183 };
184 } // (mapAttrs (_user: usercfg: {
185 user = usercfg.home.username;
186 path = deploy-rs.lib.${self.nixosConfigurations.${hostname}.config.nixpkgs.system}.activate.home-manager usercfg.home;
187 }) self.nixosConfigurations.${hostname}.config.home-manager.users);
182 }) (nixImport { dir = ./hosts; _import = (_path: name: name); }); 188 }) (nixImport { dir = ./hosts; _import = (_path: name: name); });
183 189
184 # checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib; 190 checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
185 }; 191 };
186} 192}