filebrowser: Configure backups

This commit is contained in:
SebastianStork 2025-09-02 16:56:24 +02:00
parent 933a84a9f7
commit 2761fc8953
2 changed files with 10 additions and 0 deletions

View file

@ -39,6 +39,7 @@
filebrowser = {
enable = true;
doBackups = true;
domain = "files.${config.custom.services.tailscale.domain}";
};

View file

@ -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
];
};
};
}