nixos/grafana: Add error handling to service script
Without this, the services starts even if files are missing or
prerequisite commands fail, which can lead to incorrect initial
state.
authored by talyz and committed by Raphael Megzari 41387135 98f07d6c