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