diff --git a/configuration/common/default.nix b/configuration/common/default.nix index e09e65f..253e63c 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -52,9 +52,11 @@ }; services.openssh.enable = true; - services.openssh.passwordAuthentication = false; - services.openssh.kbdInteractiveAuthentication = false; - services.openssh.permitRootLogin = lib.mkDefault "no"; + services.openssh.settings = { + passwordAuthentication = false; + kbdInteractiveAuthentication = false; + permitRootLogin = lib.mkDefault "no"; + }; nix.gc = lib.mkDefault { automatic = true;