ref: cleanup
This commit is contained in:
parent
0f3ccffd4d
commit
326f4f7f19
7 changed files with 5 additions and 34 deletions
|
|
@ -48,9 +48,8 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Firewall rules for DHCP
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [ 67 68 ]; # DHCP ports
|
||||
checkReversePath = false; # Sometimes needed for DHCP
|
||||
allowedUDPPorts = [ 67 68 ];
|
||||
checkReversePath = false;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# Import service data (make sure this path is correct)
|
||||
service_data = import ../data/services.nix;
|
||||
kiwix = service_data.kiwix;
|
||||
zimUrls = kiwix.urls;
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ in {
|
|||
TZ = "Europe/Berlin";
|
||||
};
|
||||
extraOptions = [
|
||||
"--memory=512m" # Limit container to 512MB RAM
|
||||
"--memory-swap=512m" # Disable swap usage
|
||||
"--cpus=1" # Limit to 1 CPU core
|
||||
"--memory=512m"
|
||||
"--memory-swap=512m"
|
||||
"--cpus=1"
|
||||
];
|
||||
autoStart = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Allow DNS through the firewall
|
||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue