persist cache files for 7 days
Some checks failed
Hydra devShells.x86_64-linux.default Hydra build #23874 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23895 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23897 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23896 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.pc-installer Hydra build #23900 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.not522 Hydra build #23898 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #23899 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra checks.x86_64-linux.containers-default Hydra build #23894 of nixos-config:pr618:checks.x86_64-linux.containers-default

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-06 09:17:37 +01:00
parent 5df99ba01d
commit 5c94f13b7c
2 changed files with 6 additions and 0 deletions

View file

@ -98,6 +98,7 @@ with lib; {
directories = [
"/var/log"
"/var/lib/nixos"
"/var/cache"
];
files = [
"/etc/ssh/ssh_host_ecdsa_key"
@ -108,6 +109,9 @@ with lib; {
"/etc/ssh/ssh_host_rsa_key.pub"
];
};
systemd.tmpfiles.rules = [
"d /persistent/var/cache 1777 root root 7d -"
];
})
];
}

View file

@ -27,10 +27,12 @@ with lib; {
"Pictures"
"Documents"
"Videos"
".cache"
];
};
})
config.environment.impermanence.users);
systemd.tmpfiles.rules = map (name: "d /persistent/home/${name}/.cache 700 ${name} ${name} 7d -") config.environment.impermanence.users;
systemd.services = listToAttrs (flatten (map (name: let
cfg = config.users.users.${name};
in [