13 lines
280 B
Nix
13 lines
280 B
Nix
{
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
};
|
|
};
|
|
|
|
networking.firewall.enable = true;
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
}
|