From 312754fe05f51149306dfbc29ace9f176763e139 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 18 Oct 2024 20:35:28 +0200 Subject: [PATCH] fix: set `lib.mkDefault false` for SSH -> PasswordAuthentication --- modules/core/sshd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/sshd.nix b/modules/core/sshd.nix index fc139c1..2f7f332 100644 --- a/modules/core/sshd.nix +++ b/modules/core/sshd.nix @@ -1,10 +1,10 @@ -{ ... }: +{ lib, ... }: { services.openssh = { enable = true; ports = [22]; settings = { - PasswordAuthentication = false; + PasswordAuthentication = lib.mkDefault false; AllowUsers = null; PermitRootLogin = "no"; LoginGraceTime = 0;