mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
freshrss: Configure backups
This commit is contained in:
parent
6755036951
commit
4f1143c9ec
2 changed files with 10 additions and 1 deletions
|
|
@ -69,6 +69,7 @@
|
||||||
freshrss = {
|
freshrss = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "rss.${tailscaleDomain}";
|
domain = "rss.${tailscaleDomain}";
|
||||||
|
doBackups = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
alloy = {
|
alloy = {
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ in
|
||||||
type = lib.types.port;
|
type = lib.types.port;
|
||||||
default = 22055;
|
default = 22055;
|
||||||
};
|
};
|
||||||
|
doBackups = lib.mkEnableOption "";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -42,6 +43,13 @@ in
|
||||||
authType = "none";
|
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