mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
chore: refactored sops secrets
This commit is contained in:
parent
60c469ee7f
commit
9df4b8c8a0
13 changed files with 47 additions and 42 deletions
|
|
@ -9,7 +9,7 @@ in
|
|||
wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "${deimos.wireguard.ip0}/32" ];
|
||||
privateKeyFile = config.sops.secrets."${service.name}-deimos-private".path;
|
||||
privateKeyFile = config.sops.secrets."${service.name}/deimos-private".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -17,7 +17,7 @@ in
|
|||
sops =
|
||||
let
|
||||
sopsPath = secret: {
|
||||
path = "${service.sops.path0}/${service.name}-${secret}-pass";
|
||||
path = "${service.sops.path0}/${service.name}-${secret}";
|
||||
owner = "root";
|
||||
mode = "600";
|
||||
};
|
||||
|
|
@ -26,7 +26,7 @@ in
|
|||
secrets = builtins.listToAttrs (
|
||||
map
|
||||
(secret: {
|
||||
name = "${service.name}-${secret}";
|
||||
name = "${service.name}/${secret}";
|
||||
value = sopsPath secret;
|
||||
})
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue