nixos/pgbackup: rename option period -> startAt

This commit is contained in:
Markus Kowalewski 2018-06-19 18:22:46 +02:00
parent aee0f49fe6
commit 6dc06fdd28
No known key found for this signature in database
GPG key ID: D865C8A91D7025EB
2 changed files with 9 additions and 3 deletions

View file

@ -197,6 +197,12 @@ with lib;
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "fonts" "fontconfig" "forceAutohint" ])
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
# postgresqlBackup
(mkRemovedOptionModule [ "services" "postgresqlBackup" "period" ] ''
A systemd timer is now used instead of cron.
The starting time can be configured via <literal>services.postgresqlBackup.startAt</literal>.
'')
# Profile splitting
(mkRenamedOptionModule [ "virtualization" "growPartition" ] [ "boot" "growPartition" ])

View file

@ -34,7 +34,7 @@ let
User = "postgres";
};
startAt = cfg.period;
startAt = cfg.startAt;
};
in {
@ -50,10 +50,10 @@ in {
'';
};
period = mkOption {
startAt = mkOption {
default = "*-*-* 01:15:00";
description = ''
This option defines (in the format used by <literal>systemd.time</literal>) when the
This option defines (see <literal>systemd.time</literal> for format) when the
databases should be dumped.
The default is to update at 01:15 (at night) every day.
'';