summaryrefslogtreecommitdiff
path: root/nixos/kusanagi.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-07-19 17:08:45 +0200
committerAlex Auvolat <alex@adnab.me>2023-07-19 17:09:04 +0200
commit07a0c5465e608f3378f8405a56d2fd062a190e4e (patch)
tree3f9a5c3820f63521bb8f6908bd1082d7cd6beeb0 /nixos/kusanagi.nix
parent1a802230241c27d749ad977717d31bc2ddf812ff (diff)
downloaduser-config-07a0c5465e608f3378f8405a56d2fd062a190e4e.tar.gz
user-config-07a0c5465e608f3378f8405a56d2fd062a190e4e.zip
kusanagi: ~lx/.cache as tmpfs
Diffstat (limited to 'nixos/kusanagi.nix')
-rw-r--r--nixos/kusanagi.nix8
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;
# ----