diff --git a/lib/default.nix b/lib/default.nix index 8eafe8f1..13633237 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -11,17 +11,8 @@ sshOpts = [ "-A" "-q"]; profiles = { - system = { - path = inputs.deploy-rs.lib.${platform}.activate.nixos self.nixosConfigurations.${hostname}; - user = "root"; - sshUser = "${username}"; - }; - # home-manager = { - # path = inputs.deploy-rs.lib.${platform}.activate.home-manager self.homeConfigurations."${username}@${hostname}"; - # user = "root"; - # sshUser = "${username}"; - # sshOpts = [ "-A" ]; - # }; + system.path = inputs.deploy-rs.lib.${platform}.activate.nixos self.nixosConfigurations.${hostname}; + home-manager.path = inputs.deploy-rs.lib.${platform}.activate.home-manager self.homeConfigurations."${username}@${hostname}"; }; }; diff --git a/nixos/users/albert/default.nix b/nixos/users/albert/default.nix index 26ef8c51..5720dbe7 100644 --- a/nixos/users/albert/default.nix +++ b/nixos/users/albert/default.nix @@ -21,7 +21,7 @@ in { # Make this user trusted nix.settings.trusted-users = [ "albert" ]; - # No sudo password + # No sudo password - deploy-rs security.sudo.extraRules = [ { users = [ "albert" ];