From da7aff32ae247217f975a3a44c0d41ea688af41f Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sat, 31 Aug 2024 03:29:21 +0200 Subject: [PATCH] tmpfs size in percent --- hosts/mu/hardware.nix | 2 +- hosts/omega/hardware.nix | 2 +- hosts/sigma/hardware.nix | 2 +- hosts/zeta/hardware.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/mu/hardware.nix b/hosts/mu/hardware.nix index 0416610..abeb019 100644 --- a/hosts/mu/hardware.nix +++ b/hosts/mu/hardware.nix @@ -24,7 +24,7 @@ fileSystems."/" = { device = "none"; fsType = "tmpfs"; - options = ["defaults" "size=4G" "mode=755"]; # mode=755 so only root can write to those files + options = ["defaults" "size=50%" "mode=755"]; # mode=755 so only root can write to those files }; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT"; diff --git a/hosts/omega/hardware.nix b/hosts/omega/hardware.nix index a3bc2b0..ae36f76 100644 --- a/hosts/omega/hardware.nix +++ b/hosts/omega/hardware.nix @@ -25,7 +25,7 @@ fileSystems."/" = { device = "none"; fsType = "tmpfs"; - options = ["defaults" "size=4G" "mode=755"]; # mode=755 so only root can write to those files + options = ["defaults" "size=50%" "mode=755"]; # mode=755 so only root can write to those files }; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT"; diff --git a/hosts/sigma/hardware.nix b/hosts/sigma/hardware.nix index b183b98..5ece9b3 100644 --- a/hosts/sigma/hardware.nix +++ b/hosts/sigma/hardware.nix @@ -24,7 +24,7 @@ fileSystems."/" = { device = "none"; fsType = "tmpfs"; - options = ["defaults" "size=4G" "mode=755"]; # mode=755 so only root can write to those files + options = ["defaults" "size=50%" "mode=755"]; # mode=755 so only root can write to those files }; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT"; diff --git a/hosts/zeta/hardware.nix b/hosts/zeta/hardware.nix index 1585e61..5a6ef3f 100644 --- a/hosts/zeta/hardware.nix +++ b/hosts/zeta/hardware.nix @@ -24,7 +24,7 @@ fileSystems."/" = { device = "none"; fsType = "tmpfs"; - options = ["defaults" "size=4G" "mode=755"]; # mode=755 so only root can write to those files + options = ["defaults" "size=50%" "mode=755"]; # mode=755 so only root can write to those files }; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT";