summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@gmail.com>2018-06-19 18:22:46 +0200
committerMarkus Kowalewski <markus.kowalewski@gmail.com>2018-06-20 17:58:48 +0200
commit6dc06fdd282dcfd1ca46160b196dc2c2676aa86d (patch)
treeb0d6291209e1043342b79d20fb613518f210384a /nixos/modules
parentaee0f49fe6725f1a9551b546a757f523bd560681 (diff)
downloadnixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.tar
nixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.tar.gz
nixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.tar.bz2
nixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.tar.lz
nixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.tar.xz
nixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.tar.zst
nixlib-6dc06fdd282dcfd1ca46160b196dc2c2676aa86d.zip
nixos/pgbackup: rename option period -> startAt
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/rename.nix6
-rw-r--r--nixos/modules/services/backup/postgresql-backup.nix6
2 files changed, 9 insertions, 3 deletions
diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix
index b15dd84999a9..26b20f5eb0df 100644
--- a/nixos/modules/rename.nix
+++ b/nixos/modules/rename.nix
@@ -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" ])
 
diff --git a/nixos/modules/services/backup/postgresql-backup.nix b/nixos/modules/services/backup/postgresql-backup.nix
index 93dcd2f96479..2ec78ce6f2cf 100644
--- a/nixos/modules/services/backup/postgresql-backup.nix
+++ b/nixos/modules/services/backup/postgresql-backup.nix
@@ -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.
         '';