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 = {