1
0

configuration/common: Migrate sshd options

This commit is contained in:
clerie 2023-04-16 15:31:07 +02:00
parent b2ca7d4c3c
commit 197e13306d

View File

@ -52,9 +52,11 @@
}; };
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.passwordAuthentication = false; services.openssh.settings = {
services.openssh.kbdInteractiveAuthentication = false; passwordAuthentication = false;
services.openssh.permitRootLogin = lib.mkDefault "no"; kbdInteractiveAuthentication = false;
permitRootLogin = lib.mkDefault "no";
};
nix.gc = lib.mkDefault { nix.gc = lib.mkDefault {
automatic = true; automatic = true;