diff options
author | Alan Pearce | 2024-04-11 11:09:15 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-11 11:09:15 +0200 |
commit | f226f4d02d44c5a9ec0b60b0e971bb14e7f955bd (patch) | |
tree | 5eec1f72b6af0f990d9c7958fd1995faf5283a5d | |
parent | 6c18a33c758f0226e660f924ddd71a6d3ad53004 (diff) | |
download | nixfiles-f226f4d02d44c5a9ec0b60b0e971bb14e7f955bd.tar.lz nixfiles-f226f4d02d44c5a9ec0b60b0e971bb14e7f955bd.tar.zst nixfiles-f226f4d02d44c5a9ec0b60b0e971bb14e7f955bd.zip |
Enable deployment of home-manager profiles to servers
-rw-r--r-- | flake.nix | 13 | ||||
-rw-r--r-- | user/server.nix | 1 |
2 files changed, 13 insertions, 1 deletions
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 |