diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-12 22:53:15 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-12 22:53:15 +0100 |
commit | b4d952460bdd970d90e91d7b8e778b44a0ef3394 (patch) | |
tree | a287fea1a2a1702af3ccffd4f9a1ce94e265cd03 /flake.nix | |
parent | 75c9efa1083a3d69e09f7ebc72aed1292176f682 (diff) | |
download | nixos-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.nix | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 | } |