feat: initial commit

This commit is contained in:
Katharina Heidenreich 2026-04-08 20:53:49 +02:00
commit a28c2b5563
19 changed files with 314 additions and 0 deletions

17
services/openssh.nix Normal file
View file

@ -0,0 +1,17 @@
{ ... }:
let
opensshConfig = import ../config/openssh.nix;
usersWithKeys = opensshConfig.ssh_users;
in
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
AllowUsers = usersWithKeys;
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}