mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 14:56:11 +01:00
15 lines
233 B
Nix
15 lines
233 B
Nix
{
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 22 ];
|
|
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = true;
|
|
UseDns = true;
|
|
};
|
|
};
|
|
}
|