mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
freshrss: Configure backups
This commit is contained in:
parent
6755036951
commit
4f1143c9ec
2 changed files with 10 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ in
|
|||
type = lib.types.port;
|
||||
default = 22055;
|
||||
};
|
||||
doBackups = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
@ -42,6 +43,13 @@ in
|
|||
authType = "none";
|
||||
};
|
||||
|
||||
custom.persist.directories = [ dataDir ];
|
||||
custom = {
|
||||
services.restic.backups.freshrss = lib.mkIf cfg.doBackups {
|
||||
conflictingService = "freshrss-updater.service";
|
||||
paths = [ dataDir ];
|
||||
};
|
||||
|
||||
persist.directories = [ dataDir ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue