grafana: its settings.security.admin_password

This commit is contained in:
chris 2025-03-05 22:10:43 +01:00
parent 1d1832d752
commit 2432ef351e
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak

View file

@ -6,7 +6,7 @@
...
}:
{
imports = [];
imports = [ ];
sops = {
defaultSopsFile = ../secrets/passwords.yaml;
@ -35,22 +35,24 @@
services.grafana = {
enable = true;
security.admin_password = "$__file{${config.sops.secrets."vms/grafana/admin_password".path}}";
settings.server = {
domain = "grafana.noc.eh22.intern";
root_url = "http://grafana.noc.eh22.intern/";
settings = {
security.admin_password = "$__file{${config.sops.secrets."vms/grafana/admin_password".path}}";
server = {
domain = "grafana.noc.eh22.intern";
root_url = "http://grafana.noc.eh22.intern/";
};
};
};
services.nginx.virtualHosts.${config.services.grafana.domain} = {
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true;
};
};
# DO NOT CHANGE
# this defines the first version of NixOS that was installed on the machine so that programs with non-migratable data files are kept compatible
home-manager.users.noc.home.stateVersion = "24.11";
system.stateVersion = "24.11";
}
system.stateVersion = "24.11";
}