diff options
-rw-r--r-- | depo/nutin-madaj/default.nix | 8 | ||||
-rw-r--r-- | depo/users.nix | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/depo/nutin-madaj/default.nix b/depo/nutin-madaj/default.nix index b2afae8..4d9dd02 100644 --- a/depo/nutin-madaj/default.nix +++ b/depo/nutin-madaj/default.nix @@ -54,6 +54,13 @@ nixos { withUtempter = true; }; + services.openssh = { + enable = true; + passwordAuthentication = false; + }; + + security.sudo.wheelNeedsPassword = true; + # our custom apps #services = { # ibb = { @@ -83,6 +90,5 @@ nixos { #}; boot.cleanTmpDir = true; - services.openssh.enable = true; }; } diff --git a/depo/users.nix b/depo/users.nix index 9093566..cd73996 100644 --- a/depo/users.nix +++ b/depo/users.nix @@ -8,7 +8,8 @@ in users = { # bots deploy = { - isSystemUser = true; + isNormalUser = true; + home = "/home/deploy"; openssh.authorizedKeys.keys = [ (key "deploy.pub") ]; extraGroups = [ "wheel" ]; }; |