diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-07 01:44:02 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-07 01:44:02 +0200 |
| commit | 05d1f341b7e2e3d4d574a61552491c71feeeceb1 (patch) | |
| tree | 8c8ef68c92c94598eb2a6c2152ab8b4ee2543802 | |
| parent | modules/ssh: Add config for hetzner's storageboxes (diff) | |
| download | nixos-config-05d1f341b7e2e3d4d574a61552491c71feeeceb1.zip | |
modules/backup: Also make the cache for the admin storagebox presistent
Otherwise, we run out of cache, before it can do anything (due to the
limited size of available root tempfs).
| -rw-r--r-- | modules/by-name/ba/backup/module.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/by-name/ba/backup/module.nix b/modules/by-name/ba/backup/module.nix index 37e93849..0e2630f3 100644 --- a/modules/by-name/ba/backup/module.nix +++ b/modules/by-name/ba/backup/module.nix @@ -63,12 +63,23 @@ in { soispha.impermanence.directories = lib.mkMerge [ (lib.mkIf cfg.storagebox.enable [ "/var/cache/restic-backups-storagebox" + + # Generate the base systemd.mount from impermanence (we will override this, so it + # points to the non-admin one instead) + "/var/cache/restic-backups-storagebox-admin" ]) (lib.mkIf cfg.local.enable [ "/var/cache/restic-backups-local" ]) ]; + # TODO: Make this work (`systemd.mounts` is a list, so _this_ doesn't work.) <2026-07-07> + # systemd.mounts."/var/cache/restic-backups-storagebox-admin" = { + # # TODO: Don't hardcode the path, but use + # # `systemd.mounts."/var/cache/restic-backups-storagebox".what` instead <2026-07-07> + # what = "/srv/var/cache/restic-backups-storagebox"; + # }; + age.secrets = { resticStorageboxSshKey = lib.mkIf cfg.storagebox.enable { file = cfg.storagebox.sshKey; |
