From 3eb016dd55410e28f8f0609f8fd3277d05736f56 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 13 Dec 2023 08:53:03 +0900 Subject: [PATCH] Reorg deploy --- lib/default.nix | 13 ++----------- nixos/users/albert/default.nix | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) 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" ];