mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
filebrowser: Configure backups
This commit is contained in:
parent
933a84a9f7
commit
2761fc8953
2 changed files with 10 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ in
|
|||
|
||||
options.custom.services.filebrowser = {
|
||||
enable = lib.mkEnableOption "";
|
||||
doBackups = lib.mkEnableOption "";
|
||||
domain = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = "";
|
||||
|
|
@ -35,5 +36,13 @@ in
|
|||
noauth = true;
|
||||
};
|
||||
};
|
||||
|
||||
custom.services.resticBackups.filebrowser = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "filebrowser.service";
|
||||
extraConfig.paths = with config.services.filebrowser.settings; [
|
||||
database
|
||||
root
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue