diff options
Diffstat (limited to 'nix/modules/ssh.nix')
-rw-r--r-- | nix/modules/ssh.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nix/modules/ssh.nix b/nix/modules/ssh.nix index 5c705c9..076ee47 100644 --- a/nix/modules/ssh.nix +++ b/nix/modules/ssh.nix @@ -1,11 +1,11 @@ -{ config, ... }: +{ config, lib, ... }: { services.openssh = { enable = true; settings = { - PasswordAuthentication = true; - AllowUsers = [ config.monorepo.vars.userName ]; - PermitRootLogin = "prohibit-password"; + PasswordAuthentication = lib.mkDefault (! config.monorepo.profiles.server.enable); + AllowUsers = [ config.monorepo.vars.userName "root" "git" ]; + PermitRootLogin = "yes"; KbdInteractiveAuthentication = false; }; }; |