Compare commits

...

4 commits

Author SHA1 Message Date
09ca9341f9
feat(ninurta): make firewall configuration a little more restrictive
Some checks failed
Continuous Integration / Checks (push) Has been cancelled
2024-12-20 23:53:38 +01:00
12b4614fc7
feat(ninurta): disable hydra 2024-12-20 23:53:21 +01:00
fe7dd57bc1
feat(gorgon): adapt power management options 2024-12-20 23:27:42 +01:00
87649ec999
fix(ninurta): printer address 2024-12-20 23:09:09 +01:00
3 changed files with 21 additions and 6 deletions

View file

@ -226,5 +226,16 @@ in
];
};
powerManagement = {
enable = true;
powertop.enable = true;
cpuFreqGovernor = "schedutil";
powerUpCommands = ''
echo 40 > /sys/class/power_supply/BAT0/charge_control_start_threshold
echo 80 > /sys/class/power_supply/BAT0/charge_control_stop_threshold
'';
};
services.tlp.enable = false;
system.stateVersion = "23.11";
}

View file

@ -159,7 +159,7 @@ in
};
services.hydra = {
enable = true;
enable = false;
package = pkgs.hydra;
hydraURL = "https://hydra.dadada.li";
notificationSender = "hydra@localhost";
@ -376,17 +376,21 @@ in
enable = true;
allowPing = true;
allowedTCPPorts = [
22 # SSH
2222 # SSH
80 # munin web
631 # Printing
];
allowedUDPPorts = [
631 # Printing
51234 # Wireguard
51235 # Wireguard
];
interfaces = {
br0.allowedTCPPorts = [
22 # SSH
80 # munin web
631 # IPP
];
br0.allowedUDPPorts = [
631 # IPP
];
uwu.allowedTCPPorts = [
softServePort
];

View file

@ -32,7 +32,7 @@
drivers = [ pkgs.brlaser ];
# Remove all state at the start of the service
stateless = true;
listenAddresses = [ "192.168.101.184:631" "fd42:9c3b:f96d:101:4a21:bff:fe3e:9cfe:631" ];
listenAddresses = [ "192.168.101.29:631" ];
allowFrom = [ "from 192.168.101.0/24" ];
browsing = true;
defaultShared = true;