diff --git a/machines/bin-cache/default.nix b/machines/bin-cache/default.nix
index e393066..0f8c6b2 100644
--- a/machines/bin-cache/default.nix
+++ b/machines/bin-cache/default.nix
@@ -118,7 +118,7 @@ VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
   services.openssh = {
     enable = true;
     ports = [ 45 ];
-    permitRootLogin = "yes";
+    settings.PermitRootLogin = "yes";
     openFirewall = true;
   };
 
diff --git a/machines/lambda/default.nix b/machines/lambda/default.nix
index 4d1dfcf..97d83e7 100644
--- a/machines/lambda/default.nix
+++ b/machines/lambda/default.nix
@@ -142,7 +142,7 @@ VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
   services.openssh = {
     enable = true;
     ports = [ 45 ];
-    permitRootLogin = "yes";
+    settings.PermitRootLogin = "yes";
     openFirewall = true;
   };
 
diff --git a/modules/ssh-server/default.nix b/modules/ssh-server/default.nix
index 5d6b89a..5843a3a 100644
--- a/modules/ssh-server/default.nix
+++ b/modules/ssh-server/default.nix
@@ -13,8 +13,8 @@ with lib;
       services.openssh = {
         enable = true;
         ports = [ 45 ];
-        passwordAuthentication = false;
-        permitRootLogin = "yes";
+        settings.PasswordAuthentication = false;
+        settings.PermitRootLogin = "yes";
         openFirewall = true;
       };
     };