Networking: add openssh

This commit is contained in:
blahai 2025-01-27 14:24:45 +02:00
parent ba0deb8280
commit 800286a7f2
Signed by: blahai
SSH key fingerprint: SHA256:ZfCryi+V64yG+vC1ZIIsqgvBCmA31tTi7RJ6M8CvpRc
2 changed files with 16 additions and 0 deletions

View file

@ -8,6 +8,7 @@ in {
imports = [
./firewall
./ssh.nix
./tailscale.nix
];

View file

@ -0,0 +1,15 @@
{...}: {
services.openssh = {
enable = true;
startWhenNeeded = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
ClientAliveCountMax = 5;
ClientAliveInterval = 60;
};
openFirewall = true;
ports = [22];
};
}