refactor: reworked all maps

This commit is contained in:
Nick 2024-11-04 02:09:15 -06:00
parent b5aa0453e4
commit a114034e0e
20 changed files with 220 additions and 207 deletions

View file

@ -59,7 +59,6 @@ in {
};
sops = let
sopsSecrets = ["smtp" "database"];
sopsPath = secret: {
path = "${service.sops.path0}/${service.name}-${secret}";
owner = service.name;
@ -72,7 +71,10 @@ in {
name = "${service.name}-${secret}";
value = sopsPath secret;
})
sopsSecrets
[
"smtp"
"database"
]
);
};