From 6a03dddcbdcb24bb6cb766789520b5cd5e386007 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 20 Mar 2026 18:27:24 +0800 Subject: [PATCH] feat: add size limit for root tmpfs --- hosts/12kingdoms-shoukei/hardware-configuration.nix | 1 + hosts/idols-ai/disko-fs.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/hosts/12kingdoms-shoukei/hardware-configuration.nix b/hosts/12kingdoms-shoukei/hardware-configuration.nix index 3e103620..8008c313 100644 --- a/hosts/12kingdoms-shoukei/hardware-configuration.nix +++ b/hosts/12kingdoms-shoukei/hardware-configuration.nix @@ -100,6 +100,7 @@ in # set mode to 755, otherwise systemd will set it to 777, which cause problems. # relatime: Update inode access times relative to modify or change time. options = [ + "size=4G" "relatime" "mode=755" ]; diff --git a/hosts/idols-ai/disko-fs.nix b/hosts/idols-ai/disko-fs.nix index 8fc28806..0497631f 100644 --- a/hosts/idols-ai/disko-fs.nix +++ b/hosts/idols-ai/disko-fs.nix @@ -17,6 +17,7 @@ nodev."/" = { fsType = "tmpfs"; mountOptions = [ + "size=4G" "relatime" # Update inode access times relative to modify/change time "mode=755" ];