use systemd unit name attribute

This commit is contained in:
zowoq 2024-11-09 21:49:54 +10:00
parent df68047ea9
commit 6ee4a1c4d5
7 changed files with 34 additions and 24 deletions
modules/nixos/monitoring

View file

@ -5,7 +5,7 @@
...
}:
{
systemd.services.grafana.after = [ "prometheus.service" ];
systemd.services.grafana.after = [ config.systemd.services.prometheus.name ];
age.secrets.grafana-client-secret = {
file = "${inputs.self}/secrets/grafana-client-secret.age";