postgresql-backup: move to own services
This way the `startAt` setting is only set once.
This commit is contained in:
parent
297eb0a6f9
commit
253530ea6f
5 changed files with 28 additions and 5 deletions
|
|
@ -4,6 +4,7 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = config.my.services.miniflux;
|
||||
my = config.my;
|
||||
|
||||
domain = config.networking.domain;
|
||||
in {
|
||||
|
|
@ -28,7 +29,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
# services.postgresql is automatically enabled by services.miniflux, let's
|
||||
# back it up
|
||||
services.postgresqlBackup = {
|
||||
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
|
||||
databases = [ "miniflux" ];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue