diff --git a/nixos_modules/installer.nix b/nixos_modules/installer.nix index 00fc7ce..d524add 100644 --- a/nixos_modules/installer.nix +++ b/nixos_modules/installer.nix @@ -2,8 +2,10 @@ services.openssh = { enable = true; openFirewall = true; - # permitRootLogin = "prohibit-password"; - passwordAuthentication = false; + settings = { + # PermitRootLogin = "prohibit-password"; + PasswordAuthentication = false; + }; }; users.users.root = { openssh.authorizedKeys.keys = [ diff --git a/nixos_modules/remote-deploy.nix b/nixos_modules/remote-deploy.nix index 3ddb792..0a79a5f 100644 --- a/nixos_modules/remote-deploy.nix +++ b/nixos_modules/remote-deploy.nix @@ -2,10 +2,11 @@ services.openssh = { enable = true; openFirewall = true; - - kbdInteractiveAuthentication = lib.mkDefault false; - permitRootLogin = lib.mkDefault "prohibit-password"; - passwordAuthentication = lib.mkDefault false; + settings = { + KbdInteractiveAuthentication = lib.mkDefault false; + PermitRootLogin = lib.mkDefault "prohibit-password"; + PasswordAuthentication = lib.mkDefault false; + }; }; users.users.root.openssh.authorizedKeys.keys = [