forked from mirrors_public/oddlama_nix-config
fix: make paperless and vaultwarden temporary backup dirs persistent to avoid running out of tmpfs space on backups
This commit is contained in:
parent
38a89b05a3
commit
d77fcaa826
4 changed files with 21 additions and 3 deletions
|
@ -112,8 +112,18 @@ in {
|
|||
};
|
||||
inherit (cfg) environment;
|
||||
requiredBy = ["restic-backups-storage-box-dusk.service"];
|
||||
before = ["restic-backups-storage-box-dusk.service"];
|
||||
};
|
||||
|
||||
environment.persistence."/state".directories = [
|
||||
{
|
||||
directory = paperlessBackupDir;
|
||||
user = "paperless";
|
||||
group = "paperless";
|
||||
mode = "0700";
|
||||
}
|
||||
];
|
||||
|
||||
backups.storageBoxes.dusk = {
|
||||
subuser = "paperless";
|
||||
paths = [paperlessBackupDir];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue