mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Persist state of actual, filebrowser, memos, radicale and syncthing
This commit is contained in:
parent
eff39a6ccd
commit
1b9a26c494
5 changed files with 42 additions and 17 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.custom.services.actualbudget;
|
||||
|
||||
inherit (config.services.actual.settings) dataDir;
|
||||
in
|
||||
{
|
||||
options.custom.services.actualbudget = {
|
||||
|
|
@ -30,9 +32,13 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
custom.services.resticBackups.actual = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "actual.service";
|
||||
paths = [ config.services.actual.settings.dataDir ];
|
||||
custom = {
|
||||
services.resticBackups.actual = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "actual.service";
|
||||
paths = [ dataDir ];
|
||||
};
|
||||
|
||||
persist.directories = [ dataDir ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue