Compare commits

...

2 commits

Author SHA1 Message Date
0cdce64701 dynamic large pages and update modpack
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 33s
2026-05-09 14:21:45 +07:00
e3202701ef wp source 2026-05-09 14:21:30 +07:00
2 changed files with 5 additions and 4 deletions

View file

@ -10,3 +10,4 @@
## Credits ## Credits
- [orangc's flake](https://git.orangc.net/c/dots) - [orangc's flake](https://git.orangc.net/c/dots)
- [vimjoyer's tutorials](https://www.youtube.com/@vimjoyer) - [vimjoyer's tutorials](https://www.youtube.com/@vimjoyer)
- [wallpaper source](https://github.com/er2de2/catppuccin_walls/blob/master/wallpapers_png/autumn_2.0.png)

View file

@ -1,9 +1,9 @@
{ inputs, lib, pkgs, ... }: let { inputs, lib, pkgs, ... }: let
ram-allocation-mb = 12288; ram-allocation-mb = 12288;
modpack = let modpack = let
commit = "d1c0e4d6813e912a861345aa172eb52b83f93da9"; commit = "476d4e5c08caded28ef0e24193249bec75cf52e6";
in pkgs.fetchPackwizModpack { in pkgs.fetchPackwizModpack {
packHash = "sha256-qeiJlkMBkTW+WQemGt9W0N+iTgG6TKsq/5YiJuph1Sk="; packHash = "";
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml"; url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
}; };
in { in {
@ -12,7 +12,7 @@ in {
powerManagement.cpuFreqGovernor = "schedutil"; powerManagement.cpuFreqGovernor = "schedutil";
boot.kernel.sysctl = { boot.kernel.sysctl = {
"vm.nr_hugepages" = 6656; "vm.nr_hugepages" = (ram-allocation-mb / 2) + 512; # (heap_mb / 2MB per page) + 512 pages (1GB) for ZGC off-heap overhead
"vm.swappiness" = 10; "vm.swappiness" = 10;
}; };