commit 3a69987cdbe942b6d030a118975355c05a0cb3b4 parent 934271b6c5abf3a24e23a0ebea1cbf8bdc2aaf0d Author: Milutin Popovic <milutin@popovic.xyz> Date: Wed, 18 Mar 2026 21:14:56 +0000 disable password login on ssh Diffstat:
| M | system/host/frame.nix | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/system/host/frame.nix b/system/host/frame.nix @@ -148,6 +148,15 @@ enable = true; touchpad.naturalScrolling = false; }; + openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "myUser" ]; + }; + }; }; systemd.sleep.settings.Sleep = {