From 5226cb713383fe793ebdb2b8bd80b24de31314b0 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 7 Mar 2026 08:07:49 +0700 Subject: [PATCH 1/2] oom protection and unzip --- modules/system/core/oom.nix | 4 ++++ modules/system/misc/utilities.nix | 1 + modules/system/server.nix | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 modules/system/core/oom.nix diff --git a/modules/system/core/oom.nix b/modules/system/core/oom.nix new file mode 100644 index 0000000..e62f7bb --- /dev/null +++ b/modules/system/core/oom.nix @@ -0,0 +1,4 @@ +{ ... }: { + zramSwap.enable = true; + systemd.oomd.enable = true; +} \ No newline at end of file diff --git a/modules/system/misc/utilities.nix b/modules/system/misc/utilities.nix index 587e9b4..87a3069 100644 --- a/modules/system/misc/utilities.nix +++ b/modules/system/misc/utilities.nix @@ -24,6 +24,7 @@ gucharmap ncdu zip + unzip blueman shared-mime-info usbutils diff --git a/modules/system/server.nix b/modules/system/server.nix index c6eb8f0..fc7e686 100644 --- a/modules/system/server.nix +++ b/modules/system/server.nix @@ -20,7 +20,9 @@ in { ./homelab/dns.nix ./homelab/git.nix ./homelab/ai.nix + ./core/swapfile.nix + ./core/oom.nix ./misc/theme.nix ./base.nix ]; From 36c28533de73a0193e9c34604af9ccc21d482fe2 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 7 Mar 2026 13:48:09 +0700 Subject: [PATCH 2/2] change git url --- modules/system/homelab/git.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/homelab/git.nix b/modules/system/homelab/git.nix index c5c5a9a..4a435d7 100644 --- a/modules/system/homelab/git.nix +++ b/modules/system/homelab/git.nix @@ -15,11 +15,11 @@ settings = { server = { DISABLE_SSH = true; - DOMAIN = "git.proxy.${homelab.domain}"; + DOMAIN = "git.${homelab.domain}"; HTTP_ADDR = "127.0.0.1"; HTTP_PORT = 5080; PROTOCOL = "http"; - ROOT_URL = "https://git.proxy.${homelab.domain}"; + ROOT_URL = "https://git.${homelab.domain}"; LANDING_PAGE = "explore"; }; oauth2_client.ENABLE_AUTO_REGISTRATION=true;