Changed: Modules

This commit is contained in:
2025-04-03 12:50:08 +02:00
parent 775737fd18
commit b84ca8ac24
13 changed files with 218 additions and 173 deletions

13
modules/openssh.nix Normal file
View File

@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "no"; # disable root login
PasswordAuthentication = false; # disable password login
};
openFirewall = true;
};
}