Compare commits

...

3 commits

Author SHA1 Message Date
Yureka 4e869a9f43 fix bmc dhcp 2024-07-10 15:54:46 +02:00
Yureka 3cbdbc45f7 more quality of life improvements... 2024-07-10 15:54:30 +02:00
Yureka 7ba42d99d1 reduce hydra builders to 4 2024-07-10 15:08:28 +02:00
3 changed files with 24 additions and 2 deletions

View file

@ -33,4 +33,21 @@
boot.kernelParams = [ boot.kernelParams = [
"panic=30" "boot.panic_on_fail" "panic=30" "boot.panic_on_fail"
]; ];
boot.kernel.sysctl = {
# Set default TCP congestion control algorithm
"net.ipv4.tcp_congestion_control" = "bbr";
# Enable ECN
"net.ipv4.tcp_ecn" = 1;
# Enable TCP fast open
"net.ipv4.tcp_fastopen" = 3;
};
# reduce closure size, feel free to add your locale here
i18n.supportedLocales = [
"en_US.UTF-8/UTF-8"
"fr_FR.UTF-8/UTF-8"
];
} }

View file

@ -39,8 +39,8 @@
hydra.enable = true; hydra.enable = true;
hydra.dbi = "dbi:Pg:dbname=hydra;user=hydra"; hydra.dbi = "dbi:Pg:dbname=hydra;user=hydra";
# Takes 10 builders (0 → 9). # Takes 4 builders (0 → 3).
hydra.builders = lib.genList (i: "builder-${builtins.toString i}") 9; hydra.builders = lib.genList (i: "builder-${builtins.toString i}") 4;
ofborg.enable = true; ofborg.enable = true;
}; };

View file

@ -86,6 +86,11 @@
}) (lib.genList lib.id 12)); }) (lib.genList lib.id 12));
}; };
networking.nftables.enable = true;
networking.firewall.extraInputRules = ''
iifname { "bmc*" } meta nfproto ipv4 udp dport 67 accept comment "DHCP server"
'';
networking.vlans = lib.listToAttrs (map (x: lib.nameValuePair "bmc${toString x}" { networking.vlans = lib.listToAttrs (map (x: lib.nameValuePair "bmc${toString x}" {
interface = "oob"; interface = "oob";
id = 101 + x; id = 101 + x;