nix-config/modules/openssh.nix

14 lines
288 B
Nix
Raw Normal View History

2025-04-03 12:50:08 +02:00
{ pkgs, ... }:
{
2025-09-03 10:03:29 +02:00
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "no"; # disable root login
PasswordAuthentication = false; # disable password login
2025-04-03 12:50:08 +02:00
};
2025-09-03 10:03:29 +02:00
openFirewall = true;
};
2025-04-03 12:50:08 +02:00
}