mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
feat: add size limit for root tmpfs
This commit is contained in:
@@ -100,6 +100,7 @@ in
|
|||||||
# set mode to 755, otherwise systemd will set it to 777, which cause problems.
|
# 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.
|
# relatime: Update inode access times relative to modify or change time.
|
||||||
options = [
|
options = [
|
||||||
|
"size=4G"
|
||||||
"relatime"
|
"relatime"
|
||||||
"mode=755"
|
"mode=755"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
nodev."/" = {
|
nodev."/" = {
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
|
"size=4G"
|
||||||
"relatime" # Update inode access times relative to modify/change time
|
"relatime" # Update inode access times relative to modify/change time
|
||||||
"mode=755"
|
"mode=755"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user