mirror of
https://github.com/blahai/nyx.git
synced 2025-02-22 22:25:09 +00:00
Networking: add openssh
This commit is contained in:
parent
ba0deb8280
commit
800286a7f2
2 changed files with 16 additions and 0 deletions
|
@ -8,6 +8,7 @@ in {
|
|||
imports = [
|
||||
./firewall
|
||||
|
||||
./ssh.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
|
||||
|
|
15
modules/nixos/networking/ssh.nix
Normal file
15
modules/nixos/networking/ssh.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{...}: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
startWhenNeeded = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
|
||||
ClientAliveCountMax = 5;
|
||||
ClientAliveInterval = 60;
|
||||
};
|
||||
openFirewall = true;
|
||||
ports = [22];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue