From 07a0c5465e608f3378f8405a56d2fd062a190e4e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 19 Jul 2023 17:08:45 +0200 Subject: kusanagi: ~lx/.cache as tmpfs --- nixos/kusanagi.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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; # ---- -- cgit v1.2.3