From 751d82f7e3099aa264c7c7df14aa32ab3a70d168 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 28 Aug 2024 16:53:06 +0200 Subject: [PATCH] backups: rename pub-solar-os.backups.backups -> pub-solar-os.backups.restic --- modules/backups/default.nix | 10 +++++----- modules/keycloak/default.nix | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/backups/default.nix b/modules/backups/default.nix index 379309aa..54c0bf05 100644 --- a/modules/backups/default.nix +++ b/modules/backups/default.nix @@ -61,7 +61,7 @@ in }; }; - backups = mkOption { + restic = mkOption { description = '' Periodic backups to create with Restic. ''; @@ -174,7 +174,7 @@ in runCheck = mkOption { type = types.bool; - default = (builtins.length config.pub-solar-os.backups.backups.${name}.checkOpts > 0); + default = (builtins.length config.pub-solar-os.backups.restic.${name}.checkOpts > 0); defaultText = literalExpression ''builtins.length config.services.backups.${name}.checkOpts > 0''; description = "Whether to run the `check` command with the provided `checkOpts` options."; example = true; @@ -256,16 +256,16 @@ in services.restic.backups = let repos = config.pub-solar-os.backups.repos; - backups = config.pub-solar-os.backups.backups; + restic = config.pub-solar-os.backups.restic; storeNames = builtins.attrNames repos; - backupNames = builtins.attrNames backups; + backupNames = builtins.attrNames restic; createBackups = backupName: map (storeName: { name = "${backupName}-${storeName}"; - value = repos."${storeName}" // backups."${backupName}"; + value = repos."${storeName}" // restic."${backupName}"; }) storeNames; in diff --git a/modules/keycloak/default.nix b/modules/keycloak/default.nix index 59d924b9..38da6cf2 100644 --- a/modules/keycloak/default.nix +++ b/modules/keycloak/default.nix @@ -58,7 +58,7 @@ }; }; - pub-solar-os.backups.backups.keycloak = { + pub-solar-os.backups.restic.keycloak = { paths = [ "/tmp/keycloak-backup.sql" ]; timerConfig = { OnCalendar = "*-*-* 03:00:00 Etc/UTC";