split server desktop, move stuff

This commit is contained in:
Vinzenz Schroeter 2023-09-11 19:16:26 +02:00
parent 69026cb461
commit 5e9a74280e
19 changed files with 107 additions and 127 deletions

View file

@ -14,13 +14,25 @@ in {
config = lib.mkIf cfg.enable {
services = {
services.openssh.enable = true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
# PermitRootLogin = "no"; # this is managed through authorized keys
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
};
programs = {
git.enable = true;
zsh.enable = true;
};
networking.firewall = {
enable = true;
allowedTCPPortRanges = [
{
# ssh
@ -29,5 +41,11 @@ in {
}
];
};
environment = {
systemPackages = with pkgs; [
ncdu
];
};
};
}