Skip to content
Snippets Groups Projects
Commit 14c9d051 authored by Florian Sesser's avatar Florian Sesser
Browse files

Fix Grafana start on local dev after upgrade to NixOS 21.11

Grafana 8 on NixOS 21.11 fails harder than 7.x on 21.05 when its
`grafana-admin.password` file is missing.  Provide it regardless
whether Google auth is configured or not.
parent 57d99119
No related branches found
No related tags found
2 merge requests!264merge develop into production,!241Fix Grafana start on local dev after upgrade to NixOS 21.11
Pipeline #1668 passed
...@@ -121,6 +121,8 @@ in { ...@@ -121,6 +121,8 @@ in {
permissions = "0400"; permissions = "0400";
action = ["sudo" "systemctl" "restart" "grafana.service"]; action = ["sudo" "systemctl" "restart" "grafana.service"];
}; };
})
{
"grafana-admin-password" = { "grafana-admin-password" = {
source = "${privateKeyPath}/grafana-admin.password"; source = "${privateKeyPath}/grafana-admin.password";
destination = "/run/keys/grafana-admin.password"; destination = "/run/keys/grafana-admin.password";
...@@ -129,7 +131,7 @@ in { ...@@ -129,7 +131,7 @@ in {
permissions = "0400"; permissions = "0400";
action = ["sudo" "systemctl" "restart" "grafana.service"]; action = ["sudo" "systemctl" "restart" "grafana.service"];
}; };
}) }
(lib.mkIf cfg.enableSlackAlert { (lib.mkIf cfg.enableSlackAlert {
"grafana-slack-url" = { "grafana-slack-url" = {
source = "${privateKeyPath}/grafana-slack-url"; source = "${privateKeyPath}/grafana-slack-url";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment