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

@ -20,9 +20,9 @@ in
systemd.services.matrix-hook = {
description = "Matrix Hook";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
after = [ config.systemd.targets.network-online.name ];
wants = [ config.systemd.targets.network-online.name ];
wantedBy = [ config.systemd.targets.multi-user.name ];
environment = {
HTTP_ADDRESS = "localhost";
HTTP_PORT = "9088";