mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
sops: restructure secrets files
This commit is contained in:
parent
8561f6381b
commit
d14732b063
10 changed files with 58 additions and 45 deletions
|
|
@ -27,14 +27,14 @@ in
|
|||
config = lib.mkIf (resticBackups != { }) {
|
||||
sops = {
|
||||
secrets = {
|
||||
"restic/backblaze/key-id" = { };
|
||||
"restic/backblaze/application-key" = { };
|
||||
"backblaze/key-id" = { };
|
||||
"backblaze/application-key" = { };
|
||||
"restic/password" = { };
|
||||
};
|
||||
|
||||
templates."restic/environment".content = ''
|
||||
AWS_ACCESS_KEY_ID=${config.sops.placeholder."restic/backblaze/key-id"}
|
||||
AWS_SECRET_ACCESS_KEY=${config.sops.placeholder."restic/backblaze/application-key"}
|
||||
AWS_ACCESS_KEY_ID=${config.sops.placeholder."backblaze/key-id"}
|
||||
AWS_SECRET_ACCESS_KEY=${config.sops.placeholder."backblaze/application-key"}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue