Extract an openssh mixin

This commit is contained in:
Oliver Davies 2025-04-18 23:12:16 +01:00
parent fa3bee371f
commit 791d206764
4 changed files with 15 additions and 6 deletions

View file

@ -0,0 +1,14 @@
{ lib, ... }:
{
services.openssh = {
enable = true;
openFirewall = lib.mkForce true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = lib.mkForce "no";
};
};
}