diff options
author | Franck Cuny <franck@fcuny.net> | 2023-07-06 11:17:47 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-07-06 11:17:47 -0700 |
commit | 2f040398ec64bb2831ffa5d45bdbdd6e7b7a64eb (patch) | |
tree | d3aa3e158db8f73d7ff0316fd7f66ca462faa8e4 | |
parent | enable zsh for all profiles (diff) | |
download | world-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.nix | 6 |
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 ]; |