From 1d92ef53caf8b65cece4b9f22f52601f660d0912 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 28 Aug 2024 16:58:35 +0200 Subject: [PATCH] backups: storeName -> repoName --- modules/backups/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/backups/default.nix b/modules/backups/default.nix index 54c0bf0..5c286ef 100644 --- a/modules/backups/default.nix +++ b/modules/backups/default.nix @@ -258,15 +258,15 @@ in repos = config.pub-solar-os.backups.repos; restic = config.pub-solar-os.backups.restic; - storeNames = builtins.attrNames repos; + repoNames = builtins.attrNames repos; backupNames = builtins.attrNames restic; createBackups = backupName: - map (storeName: { - name = "${backupName}-${storeName}"; - value = repos."${storeName}" // restic."${backupName}"; - }) storeNames; + map (repoName: { + name = "${backupName}-${repoName}"; + value = repos."${repoName}" // restic."${backupName}"; + }) repoNames; in builtins.listToAttrs (lib.lists.flatten (map createBackups backupNames));