Enable deployment of home-manager profiles to servers
Alan Pearce alan@alanpearce.eu
Thu, 11 Apr 2024 11:09:15 +0200
2 files changed, 13 insertions(+), 1 deletions(-)
jump to
M flake.nix → flake.nix
@@ -128,21 +128,32 @@ deploy-rs.lib; deploy = { remoteBuild = true; - interactiveSudo = true; nodes.linde = { hostname = "linde"; profiles.system = { user = "root"; + interactiveSudo = true; path = deploy-rs.lib.${utils.lib.system.aarch64-linux}.activate.nixos self.nixosConfigurations.linde; + }; + profiles.alan = { + user = "alan"; + path = deploy-rs.lib.${utils.lib.system.aarch64-linux}.activate.home-manager + self.homeConfigurations."alan@linde"; }; }; nodes.nanopi = { hostname = "nanopi"; profiles.system = { user = "root"; + interactiveSudo = true; path = deploy-rs.lib.${utils.lib.system.aarch64-linux}.activate.nixos self.nixosConfigurations.nanopi; + }; + profiles.alan = { + user = "alan"; + path = deploy-rs.lib.${utils.lib.system.aarch64-linux}.activate.home-manager + self.homeConfigurations."alan@nanopi"; }; }; };
M user/server.nix → user/server.nix
@@ -5,6 +5,7 @@ { imports = [ ./settings/base.nix ./settings/git.nix + ./settings/fish.nix ./settings/nix.nix ./settings/nixos.nix ./settings/development/base.nix