Skip to content

Commit 6a03ddd

Browse files
committed
feat: add size limit for root tmpfs
1 parent 4db8d0d commit 6a03ddd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

hosts/12kingdoms-shoukei/hardware-configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ in
100100
# set mode to 755, otherwise systemd will set it to 777, which cause problems.
101101
# relatime: Update inode access times relative to modify or change time.
102102
options = [
103+
"size=4G"
103104
"relatime"
104105
"mode=755"
105106
];

hosts/idols-ai/disko-fs.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
nodev."/" = {
1818
fsType = "tmpfs";
1919
mountOptions = [
20+
"size=4G"
2021
"relatime" # Update inode access times relative to modify/change time
2122
"mode=755"
2223
];

0 commit comments

Comments
 (0)