mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
update restic key layout
This commit is contained in:
parent
11ba348a58
commit
eca3549857
3 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" = {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue