mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +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
|
|
@ -7,6 +7,11 @@
|
|||
}:
|
||||
let
|
||||
cfg = config.custom.services.filebrowser;
|
||||
|
||||
dataDirs = with config.services.filebrowser.settings; [
|
||||
database
|
||||
root
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = [ "${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/filebrowser.nix" ];
|
||||
|
|
@ -40,12 +45,13 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
custom.services.resticBackups.filebrowser = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "filebrowser.service";
|
||||
paths = with config.services.filebrowser.settings; [
|
||||
database
|
||||
root
|
||||
];
|
||||
custom = {
|
||||
services.resticBackups.filebrowser = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "filebrowser.service";
|
||||
paths = dataDirs;
|
||||
};
|
||||
|
||||
persist.directories = dataDirs;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue