feat: add size limit for root tmpfs

This commit is contained in:
Ryan Yin
2026-03-20 18:27:24 +08:00
parent 4db8d0d2cb
commit 6a03dddcbd
2 changed files with 2 additions and 0 deletions

View File

@@ -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"
];

View File

@@ -17,6 +17,7 @@
nodev."/" = {
fsType = "tmpfs";
mountOptions = [
"size=4G"
"relatime" # Update inode access times relative to modify/change time
"mode=755"
];