Compare commits
2 commits
caa8357db8
...
47533f119e
| Author | SHA1 | Date | |
|---|---|---|---|
| 47533f119e | |||
| ae13ab0c86 |
4 changed files with 12 additions and 0 deletions
BIN
hosts/nixos/porthos/secrets/monitoring/secret-key.age
Normal file
BIN
hosts/nixos/porthos/secrets/monitoring/secret-key.age
Normal file
Binary file not shown.
|
|
@ -42,6 +42,10 @@ in
|
|||
owner = "grafana";
|
||||
publicKeys = all;
|
||||
};
|
||||
"monitoring/secret-key.age" = {
|
||||
owner = "grafana";
|
||||
publicKeys = all;
|
||||
};
|
||||
|
||||
"nextcloud/password.age" = {
|
||||
owner = "nextcloud";
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ in
|
|||
enable = true;
|
||||
grafana = {
|
||||
passwordFile = secrets."monitoring/password".path;
|
||||
secretKeyFile = secrets."monitoring/secret-key".path;
|
||||
};
|
||||
};
|
||||
# FLOSS music streaming server
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ in
|
|||
example = "/var/lib/grafana/password.txt";
|
||||
description = "Admin password stored in a file";
|
||||
};
|
||||
|
||||
secretKeyFile = mkOption {
|
||||
type = types.str;
|
||||
example = "/var/lib/grafana/secret_key.txt";
|
||||
description = "Secret key stored in a file";
|
||||
};
|
||||
};
|
||||
|
||||
prometheus = {
|
||||
|
|
@ -61,6 +67,7 @@ in
|
|||
security = {
|
||||
admin_user = cfg.grafana.username;
|
||||
admin_password = "$__file{${cfg.grafana.passwordFile}}";
|
||||
secret_key = "$__file{${cfg.grafana.secretKeyFile}}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue