summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-03-12 22:53:15 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-03-12 22:53:15 +0100
commitb4d952460bdd970d90e91d7b8e778b44a0ef3394 (patch)
treea287fea1a2a1702af3ccffd4f9a1ce94e265cd03 /flake.nix
parent75c9efa1083a3d69e09f7ebc72aed1292176f682 (diff)
downloadnixos-b4d952460bdd970d90e91d7b8e778b44a0ef3394.tar
nixos-b4d952460bdd970d90e91d7b8e778b44a0ef3394.tar.gz
nixos-b4d952460bdd970d90e91d7b8e778b44a0ef3394.tar.bz2
nixos-b4d952460bdd970d90e91d7b8e778b44a0ef3394.tar.xz
nixos-b4d952460bdd970d90e91d7b8e778b44a0ef3394.zip
deploy-rs home-manager
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}