NixOS/profiles/homeserver.nix

49 lines
1,011 B
Nix
Raw Normal View History

2024-06-12 18:09:56 +07:00
{ ... }:
{
imports = [
../options
];
profile = {
hostname = "homeserver";
2024-06-14 14:30:52 +07:00
networking.externalInterface = "enp9s0";
2024-06-12 18:09:56 +07:00
user = {
name = "homeserver";
fullName = "Homeserver";
2024-06-17 20:44:51 +07:00
getty.autoLogin = true;
2024-06-12 18:09:56 +07:00
};
system.stateVersion = "24.05";
grub.enable = false;
# There is no GUI on the server. No need for audio.
audio.enable = false;
security.sudo.wheelNeedsPassword = false;
openssh.enable = true;
2024-06-12 19:25:36 +07:00
go.enable = true;
2024-06-12 20:25:30 +07:00
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
2024-06-13 00:50:38 +07:00
podman = {
enable = true;
pihole.enable = true;
2024-06-17 19:54:36 +07:00
suwayomi.enable = true;
};
docker = {
enable = false;
2024-06-12 23:37:10 +07:00
};
services = {
caddy.enable = true;
cockpit.enable = true;
2024-06-13 16:08:33 +07:00
forgejo.enable = true;
kavita.enable = true;
samba.enable = true;
2024-06-13 23:14:37 +07:00
nextcloud.enable = true;
2024-06-14 10:04:29 +07:00
syncthing.enable = true;
2024-06-14 14:30:52 +07:00
openvpn.enable = true;
2024-06-14 19:42:14 +07:00
stubby.enable = true;
};
2024-06-12 18:09:56 +07:00
};
}