From f226f4d02d44c5a9ec0b60b0e971bb14e7f955bd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 11 Apr 2024 11:09:15 +0200 Subject: Enable deployment of home-manager profiles to servers --- flake.nix | 13 ++++++++++++- user/server.nix | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0ce7efb8..2aa1703d 100644 --- a/flake.nix +++ b/flake.nix @@ -128,22 +128,33 @@ 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"; + }; }; }; } // utils.lib.eachDefaultSystem (system: diff --git a/user/server.nix b/user/server.nix index d0114007..235e6908 100644 --- a/user/server.nix +++ b/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 -- cgit 1.4.1