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

View file

@ -62,9 +62,9 @@
Type = "oneshot";
TimeoutStartSec = "60";
};
wantedBy = [ "multi-user.target" ];
after = [ "hydra-server.service" ];
requires = [ "hydra-server.service" ];
wantedBy = [ config.systemd.targets.multi-user.name ];
after = [ config.systemd.services.hydra-server.name ];
requires = [ config.systemd.services.hydra-server.name ];
environment = {
inherit (config.systemd.services.hydra-init.environment) HYDRA_DBI;
};