From d99033beb928edb040e9302904b7a736344e5bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 6 Mar 2016 20:57:50 +0100 Subject: [PATCH] grafana service: unbreak Accidentally broken by 4fede53c0996938979d2966a69f108782a8c1c12 ("nixos manuals: bring back package references"). Without this fix, grafana won't start: $ systemctl status grafana ... systemd[1]: Starting Grafana Service Daemon... systemd[1]: Started Grafana Service Daemon. grafana[666]: 2016/03/06 19:57:32 [log.go:75 Fatal()] [E] Failed to detect generated css or javascript files in static root (%!s(MISSING)), have you executed default grunt task? systemd[1]: grafana.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: grafana.service: Unit entered failed state. systemd[1]: grafana.service: Failed with result 'exit-code'. --- nixos/modules/services/monitoring/grafana.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index 1dec528b5a2..5c6f063b149 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -87,7 +87,7 @@ in { staticRootPath = mkOption { description = "Root path for static assets."; - default = "${cfg.package.out}/share/grafana/public"; + default = "${cfg.package}/share/grafana/public"; type = types.str; };