update restic key layout

This commit is contained in:
TheWanderingCrow 2025-03-18 09:20:33 -04:00
parent 11ba348a58
commit eca3549857
3 changed files with 10 additions and 10 deletions

View file

@ -7,6 +7,10 @@ in
...
}:
lib.mkIf config.user.overseer.enable {
# Restic secrets
sops.secrets."restic/borg-base/url" = {};
sops.secrets."restic/borg-base/key" = {};
services.restic.backups.borg-base = {
user = "root";
timerConfig = {
@ -27,7 +31,7 @@ in
# trilium.nix
"/var/lib/trilium/backup"
];
repositoryFile = config.sops.secrets."restic/url".path;
passwordFile = config.sops.secrets."restic/key".path;
repositoryFile = config.sops.secrets."restic/borg-base/url".path;
passwordFile = config.sops.secrets."restic/borg-base/key".path;
};
}

View file

@ -11,8 +11,4 @@ lib.mkIf config.user.overseer.enable {
age.keyFile = "/var/lib/sops-nix/key.txt";
age.generateKey = true;
};
# Restic secrets
sops.secrets."restic/url" = {};
sops.secrets."restic/key" = {};
}