nix/nixos/hosts/framework-server/docker.nix

42 lines
942 B
Nix
Raw Normal View History

2023-12-01 11:58:41 +01:00
{ pkgs, ... }: {
2023-12-02 12:11:50 +01:00
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 10485760;
"fs.inotify.max_user_instances" = 1024;
};
2023-12-02 14:36:39 +01:00
2023-11-25 07:17:29 +01:00
virtualisation.docker = {
enable = true;
enableOnBoot = true;
autoPrune.enable = true;
autoPrune.dates = "weekly";
storageDriver = "btrfs";
liveRestore = true;
};
2023-12-01 11:58:41 +01:00
2023-12-04 13:48:23 +01:00
environment.systemPackages = with pkgs; [
docker-compose
ctop
];
2023-12-02 14:36:39 +01:00
networking.firewall.allowedUDPPorts = [
3478 # Headscale DERP UDP
10000 # Jitsi
];
networking.firewall.allowedTCPPorts = [
80 # HTTP
443 # HTTPS
25 # Mail
465 # Mail
587 # Mail
143 # Mail
993 # Mail
4190 # Mail
42420 # Vintage Story
25565 # Minecraft
1443 # Headscale DERP
4443 # Jitsi
2023-12-07 09:08:43 +01:00
1025 # ProtonMail Bridge
1143 # Protonmail Bridge
2023-12-02 14:36:39 +01:00
];
2023-12-02 12:11:50 +01:00
}