about summary refs log tree commit diff stats
path: root/nix-conf/machines/edrahil/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix-conf/machines/edrahil/configuration.nix')
-rw-r--r--nix-conf/machines/edrahil/configuration.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nix-conf/machines/edrahil/configuration.nix b/nix-conf/machines/edrahil/configuration.nix
index 999aea7..530f5d9 100644
--- a/nix-conf/machines/edrahil/configuration.nix
+++ b/nix-conf/machines/edrahil/configuration.nix
@@ -4,7 +4,7 @@
     ./network-configuration.nix
   ];
 
-  boot.cleanTmpDir = true;
+  boot.tmp.cleanOnBoot = true;
   zramSwap.enable = true;
 
   networking.hostName = "edrahil";
@@ -16,10 +16,12 @@
   services.openssh = {
     enable = true;
     ports = [ 2222 ];
-    permitRootLogin = "no";
-    passwordAuthentication = false;
+    settings = {
+      PermitRootLogin = "no";
+      PasswordAuthentication = false;
+      KbdInteractiveAuthentication = false;
+    };
     allowSFTP = true;
-    kbdInteractiveAuthentication = false;
     extraConfig = ''
       #AllowTcpForwarding yes
       X11Forwarding no