From 6f626d77c17d4d78c8b90c33c85e5cf1c18e5682 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sun, 9 Jan 2022 14:02:52 +0100 Subject: [PATCH] :rocket: disable ssh password login --- modules/security.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/security.nix b/modules/security.nix index 69690b1..750923b 100644 --- a/modules/security.nix +++ b/modules/security.nix @@ -76,4 +76,7 @@ ]; }; security.sudo.enable = lib.mkDefault (!config.security.doas.enable); + + # Disable ssh password login + services.openssh.passwordAuthentication = config.services.openssh.enable; }