From 0a299c68e37255cd14be29349d48787728f6ac6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Thu, 7 Nov 2024 15:13:11 +0100 Subject: [PATCH] create the persistent home directory --- modules/environment/user-impermanence.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/environment/user-impermanence.nix b/modules/environment/user-impermanence.nix index 1d193614..1be91f63 100644 --- a/modules/environment/user-impermanence.nix +++ b/modules/environment/user-impermanence.nix @@ -32,7 +32,11 @@ with lib; { }; }) config.environment.impermanence.users); - systemd.tmpfiles.rules = map (name: "d /persistent/home/${name}/.cache 700 ${name} ${name} 7d -") config.environment.impermanence.users; + systemd.tmpfiles.rules = mkMerge (map (name: [ + "d /persistent/home/${name} 700 ${name} ${config.users.users.${name}.group} - -" + "d /persistent/home/${name}/.cache 700 ${name} ${config.users.users.${name}.group} 7d -" + ]) + config.environment.impermanence.users); systemd.services = listToAttrs (flatten (map (name: let cfg = config.users.users.${name}; in [