23 lines
528 B
Nix
23 lines
528 B
Nix
{ lib, config, ... }:
|
|
{
|
|
age.secrets = lib.listToAttrs
|
|
(
|
|
map (secret: { name = secret; value = { file = ../../secrets/${secret}.age; }; }) [
|
|
"gotosocial"
|
|
"hastebin-tokens"
|
|
"immich"
|
|
"storage-box-credentials"
|
|
"vaultwarden"
|
|
]
|
|
) // {
|
|
smtp-password = {
|
|
file = ../../secrets/smtp-password.age;
|
|
owner =
|
|
if (config.services.grafana.enable) then
|
|
config.systemd.services.grafana.serviceConfig.User
|
|
else
|
|
"root";
|
|
};
|
|
};
|
|
}
|