From 73e306fee8ef8469ca381f8c3a93243fa0bb3643 Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 11 Dec 2023 13:09:49 +0900 Subject: [PATCH] Update deploy-rs --- lib/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 677f522f..9fdf4da2 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -8,15 +8,16 @@ user = "${username}"; hostname = "${hostname}"; - profiles.system = { - path = inputs.deploy-rs.lib.${platform}.activate.nixos self.nixosConfigurations.${hostname}; - sshUser = "${username}"; + profiles = { + system = { + path = inputs.deploy-rs.lib.${platform}.activate.nixos self.nixosConfigurations.${hostname}; + sshUser = "root"; + }; + home-manager = { + path = inputs.deploy-rs.lib.${platform}.activate.nixos self.homeConfigurations."${username}@${hostname}"; + sshUser = "${username}"; + }; }; - profiles.home-manager = { - path = inputs.deploy-rs.lib.${platform}.activate.nixos self.homeConfigurations."${username}@${hostname}"; - sshUser = "${username}"; - }; - }; # Helper function for generating home-manager configs mkHome = {