add: sshd nix

This commit is contained in:
2026-09-29 13:58:24 +02:00
parent 2c2bd8a659
commit 31b4263ddd
2 changed files with 14 additions and 0 deletions

View File

@@ -12,5 +12,6 @@
./dunst.nix
./terminal
./locale.nix
# ./sshd.nix # uncomment if we want to enable ssh server
];
}

13
modules/sshd.nix Normal file
View File

@@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
};
networking.firewall.allowedTCPPorts = [ 22 ];
}