Files
nix-config/hosts/modules/ssh.nix
2024-11-07 18:22:24 +01:00

19 lines
281 B
Nix

{
networking.firewall.allowedTCPPorts = [ 22 ];
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = true;
UseDns = true;
};
};
programs.ssh = {
startAgent = true;
};
}