18 lines
277 B
Nix
18 lines
277 B
Nix
{
|
|
...
|
|
}:
|
|
{
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = true;
|
|
AllowUsers = null;
|
|
UseDns = true;
|
|
X11Forwarding = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
}
|