22 lines
605 B
Nix
22 lines
605 B
Nix
{ keyCommandEnv, ... }:
|
|
{
|
|
deployment.keys = {
|
|
"metrics-grafana-admin-password.secret" = {
|
|
keyCommand = keyCommandEnv ++ [ "pass" "metrics/grafana/admin-password" ];
|
|
destDir = "/secrets";
|
|
user = "grafana";
|
|
group = "grafana";
|
|
permissions = "0640";
|
|
uploadAt = "pre-activation";
|
|
};
|
|
"metrics-grafana-smtp-password.secret" = {
|
|
keyCommand = keyCommandEnv ++ [ "pass" "metrics/grafana/smtp-password" ];
|
|
destDir = "/secrets";
|
|
user = "grafana";
|
|
group = "grafana";
|
|
permissions = "0640";
|
|
uploadAt = "pre-activation";
|
|
};
|
|
};
|
|
}
|