From 32df8d6c5b2ce6dbdb83c6394874e23c81b6e91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Nov 2024 08:53:00 +0100 Subject: [PATCH] remove .cache/.keep file --- modules/environment/user-impermanence.nix | 33 ++++++++++++----------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/modules/environment/user-impermanence.nix b/modules/environment/user-impermanence.nix index aecfcb0e..fd60947a 100644 --- a/modules/environment/user-impermanence.nix +++ b/modules/environment/user-impermanence.nix @@ -18,21 +18,24 @@ with lib; { programs.fuse.userAllowOther = true; home-manager.users = listToAttrs (map (name: { inherit name; - value.home.persistence.default = { - persistentStoragePath = "/persistent/home/${name}"; - allowOther = true; - directories = [ - "Downloads" - "Music" - "Pictures" - "Documents" - "Videos" - { - directory = ".cache"; - method = "symlink"; - } - "Data" - ]; + value.home = { + file.".cache/.keep".enable = false; + persistence.default = { + persistentStoragePath = "/persistent/home/${name}"; + allowOther = true; + directories = [ + "Downloads" + "Music" + "Pictures" + "Documents" + "Videos" + { + directory = ".cache"; + method = "symlink"; + } + "Data" + ]; + }; }; }) config.environment.impermanence.users);