about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-07-06 11:17:47 -0700
committerFranck Cuny <franck@fcuny.net>2023-07-06 11:17:47 -0700
commit2f040398ec64bb2831ffa5d45bdbdd6e7b7a64eb (patch)
treed3aa3e158db8f73d7ff0316fd7f66ca462faa8e4
parentenable zsh for all profiles (diff)
downloadworld-2f040398ec64bb2831ffa5d45bdbdd6e7b7a64eb.tar.gz
update settings for nixos 23.05
Fix the following error:
```
trace: warning: The option `services.openssh.permitRootLogin' defined in `/nix/store/l0n3297c7znfapx32a6av1c26yj042j4-source/profiles/server.nix' has been renamed to `services.openssh.settings.PermitRootLogin'.
trace: warning: The option `services.openssh.passwordAuthentication' defined in `/nix/store/l0n3297c7znfapx32a6av1c26yj042j4-source/profiles/server.nix' has been renamed to `services.openssh.settings.PasswordAuthentication'.
```
-rw-r--r--profiles/server.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/profiles/server.nix b/profiles/server.nix
index 5f1ce10..47cdc17 100644
--- a/profiles/server.nix
+++ b/profiles/server.nix
@@ -9,8 +9,10 @@
 
   services.openssh = {
     enable = true;
-    permitRootLogin = "yes";
-    passwordAuthentication = false;
+    settings = {
+      PermitRootLogin = "yes";
+      PasswordAuthentication = false;
+    };
   };
 
   networking.firewall.allowedTCPPorts = [ 22 ];