From 6d70eae3ebb972b59e41f70b0110b402e0cfdc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Nov 2024 11:15:53 +0100 Subject: [PATCH] fix .cache/.keep file --- modules/environment/user-impermanence.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/environment/user-impermanence.nix b/modules/environment/user-impermanence.nix index fd60947a..aafe3adc 100644 --- a/modules/environment/user-impermanence.nix +++ b/modules/environment/user-impermanence.nix @@ -18,9 +18,11 @@ with lib; { programs.fuse.userAllowOther = true; home-manager.users = listToAttrs (map (name: { inherit name; - value.home = { - file.".cache/.keep".enable = false; - persistence.default = { + value = {config, ...}: { + home.file."${config.home.homeDirectory}/.cache/.keep" = { + enable = false; + }; + home.persistence.default = { persistentStoragePath = "/persistent/home/${name}"; allowOther = true; directories = [