diff --git a/hosts/grafana/default.nix b/hosts/grafana/default.nix index 81395da2..1d36f660 100644 --- a/hosts/grafana/default.nix +++ b/hosts/grafana/default.nix @@ -112,22 +112,13 @@ }; }; - systemd.services = - builtins.foldl' - (services: service: - services // { - "${service}".serviceConfig = { - RestartSec = 60; - Restart = "always"; - }; - } - ) - { } [ "grafana" "influxdb" ] - // { - # work around our slow storage that can't keep up - influxdb.serviceConfig.LimitNOFILE = "1048576:1048576"; - influxdb.serviceConfig.TimeoutStartSec = "infinity"; - }; + systemd.services = { + # work around our slow storage that can't keep up + influxdb.serviceConfig.LimitNOFILE = "1048576:1048576"; + influxdb.serviceConfig.TimeoutStartSec = "infinity"; + }; system.stateVersion = "22.05"; + + users.users.nginx.extraGroups = [ "grafana" ]; }