Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #267761 from jpds/grafana-restart-on-failure

nixos/grafana: Set systemd unit to restart on failure

authored by Ilan Joselevich and committed by GitHub d7e7a213 3ee9f51e

+1
+1
nixos/modules/services/monitoring/grafana.nix
··· 1841 1841 serviceConfig = { 1842 1842 WorkingDirectory = cfg.dataDir; 1843 1843 User = "grafana"; 1844 + Restart = "on-failure"; 1844 1845 RuntimeDirectory = "grafana"; 1845 1846 RuntimeDirectoryMode = "0755"; 1846 1847 # Hardening