style
Some checks failed
Basic Code Checks / formatting-check (push) Has been cancelled

Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
gwg313 2025-07-03 10:34:00 -04:00
parent 4c0e29da8f
commit bb2fe56082
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
40 changed files with 595 additions and 1144 deletions

View file

@ -1,14 +1,27 @@
_: {
{ config, ... }:
{
sops.secrets.grafana_user = {
mode = "0440";
owner = config.users.users.grafana.name;
group = config.users.users.grafana.group;
};
sops.secrets.grafana_password = {
mode = "0440";
owner = config.users.users.grafana.name;
group = config.users.users.grafana.group;
};
services.grafana = {
enable = true;
settings = {
server = {
http_addr = "127.0.0.1";
http_port = 3000;
http_port = 3001;
};
security = {
admin_user = "admin";
admin_password = "changeme";
admin_user = "${config.sops.secrets.grafana_user.path}";
admin_password = "${config.sops.secrets.grafana_password.path}";
};
};