mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
filebrowser: Configure backups
This commit is contained in:
parent
933a84a9f7
commit
2761fc8953
2 changed files with 10 additions and 0 deletions
|
|
@ -39,6 +39,7 @@
|
||||||
|
|
||||||
filebrowser = {
|
filebrowser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
doBackups = true;
|
||||||
domain = "files.${config.custom.services.tailscale.domain}";
|
domain = "files.${config.custom.services.tailscale.domain}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ in
|
||||||
|
|
||||||
options.custom.services.filebrowser = {
|
options.custom.services.filebrowser = {
|
||||||
enable = lib.mkEnableOption "";
|
enable = lib.mkEnableOption "";
|
||||||
|
doBackups = lib.mkEnableOption "";
|
||||||
domain = lib.mkOption {
|
domain = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "";
|
default = "";
|
||||||
|
|
@ -35,5 +36,13 @@ in
|
||||||
noauth = true;
|
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