diff options
-rw-r--r-- | nixos/kusanagi.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index 59d0eee..52ba1eb 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -80,10 +80,18 @@ options = [ "bind" ]; }; + # .cache as tmpfs + fileSystems."/home/lx/.cache" = { + device = "none"; + fsType = "tmpfs"; + options = [ "defaults" "size=4G" "mode=755" "uid=1000" ]; + }; + # ---- immutable user config for tmpfs root ---- users.mutableUsers = false; users.users.lx.passwordFile = "/home/lx/.password"; + users.users.lx.uid = 1000; # ---- |