Add basic new server config

Includes sshd for easy connecting in local virtualized environment.
This commit is contained in:
JuliusFreudenberger 2025-08-08 16:56:37 +02:00
parent ac39ed944d
commit a7a3cbbc7a
5 changed files with 122 additions and 15 deletions

13
modules/sshd.nix Normal file
View file

@ -0,0 +1,13 @@
{
pkgs,
lib,
...
}: {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
}