From 91b40f534453dff8b11243f3ac458dea7bc8490f Mon Sep 17 00:00:00 2001 From: satr14 Date: Tue, 23 Jun 2026 08:22:45 +0700 Subject: [PATCH 1/4] add opencode --- modules/home/core/apps.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/home/core/apps.nix b/modules/home/core/apps.nix index bcb3363..214a70c 100644 --- a/modules/home/core/apps.nix +++ b/modules/home/core/apps.nix @@ -27,6 +27,7 @@ home.packages = with pkgs; [ zed-editor + opencode slack discord From 1a059b929bc510837d7c7d8c6567e91a1d3789e2 Mon Sep 17 00:00:00 2001 From: satr14 Date: Tue, 23 Jun 2026 08:25:22 +0700 Subject: [PATCH 2/4] add spell check --- modules/home/core/code.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/home/core/code.nix b/modules/home/core/code.nix index 21268ff..fa074e5 100644 --- a/modules/home/core/code.nix +++ b/modules/home/core/code.nix @@ -3,12 +3,12 @@ enable = true; package = pkgs.zed-editor; extensions = [ - "html" "html-snippets" - "svelte" "svelte-snippets" "wakatime" "discord-presence" "catppuccin" "catppuccin-icons" - "git-firefly" - "nix" + "codebook" + "git-firefly" "nix" + "html" "html-snippets" + "svelte" "svelte-snippets" ]; userSettings = { diff_view_style = "unified"; From 8187e32d5dab9070c46ad3e6a3d9750818140b73 Mon Sep 17 00:00:00 2001 From: satr14 Date: Wed, 24 Jun 2026 09:41:37 +0700 Subject: [PATCH 3/4] reenable tunnel --- lib/options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/options.nix b/lib/options.nix index 15876ec..c2bfd16 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -54,7 +54,7 @@ in { [ "Dockge" "docker" "https://containers.proxy.${domain}" "http://localhost:5001/" ] ]; routes = { - # "mc.${domain}" = "tcp://localhost:25565"; + "mc.${domain}" = "tcp://localhost:25565"; "docs-sandbox.${domain}" = "http://localhost:7090"; "docs.${domain}" = "http://localhost:7090"; From 2fa86ba6b2114973ab101afb1563f09ecdd34af2 Mon Sep 17 00:00:00 2001 From: satr14 Date: Wed, 24 Jun 2026 11:33:49 +0700 Subject: [PATCH 4/4] update modpack and perf tweaks --- modules/system/homelab/mc.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/system/homelab/mc.nix b/modules/system/homelab/mc.nix index 941e939..10f2e34 100644 --- a/modules/system/homelab/mc.nix +++ b/modules/system/homelab/mc.nix @@ -4,10 +4,10 @@ ram-allocation-mb = 12288; rcon-pass = "howdy"; modpack = let - commit = "e47a428b61fc087f4c733258e5a282c21b32d9c3"; + commit = "583df6751eb0b88830fa7e4a424587aedc241653"; path = if production then "commit/${commit}" else "branch/main"; in pkgs.fetchPackwizModpack { - packHash = "sha256-/gQw/FeNv/jbschhFzujloO9jaqTmfvBbzouWUJGr6w="; + packHash = ""; url = "https://git.satr14.my.id/satr14/server-modpack/raw/${path}/pack.toml"; }; in { @@ -20,9 +20,10 @@ in { "vm.swappiness" = 10; }; - systemd.services."minecraft-server-${name}".environment = { - LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; - }; # ^^^ physics mod fix + systemd.services."minecraft-server-${name}" = { + environment.LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; # physics toys mod fix + serviceConfig.Nice = -5; # higher scheduling priority + }; services.minecraft-servers = { enable = true; @@ -141,10 +142,10 @@ in { "-XX:+AlwaysPreTouch" # Pre-allocates memory on startup, OS claims it immediately for JVM instead of negotiating it "-XX:+DisableExplicitGC" # Disables mods from manually invoking the GC "-XX:+PerfDisableSharedMem" # Disables constant /tmp writes for JVM metrics - "-XX:ZAllocationSpikeTolerance=5" # Helps when server is active with many players "-XX:SoftMaxHeapSize=${toString (ram-allocation-mb - 2048)}M" # Leave 2GB headroom - "-XX:ZCollectionInterval=1" # Force a GC cycle at minimum every second - "-XX:ConcGCThreads=8" # Threads ZGC uses for concurrent work + # "-XX:ZAllocationSpikeTolerance=5" # Helps when server is active with many players + # "-XX:ZCollectionInterval=1" # Force a GC cycle at minimum every second + # "-XX:ConcGCThreads=8" # Threads ZGC uses for concurrent work ]; in lib.concatStringsSep " " flags; }; };