nixos/pgbackup: rename option period -> startAt
This commit is contained in:
parent
aee0f49fe6
commit
6dc06fdd28
|
@ -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" ])
|
||||
|
||||
|
|
|
@ -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.
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue