diff options
author | Linnnus <[email protected]> | 2025-03-13 12:32:35 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-03-13 12:32:35 +0100 |
commit | c0e386328a178dd4c39465fda6a694ba9e9652fb (patch) | |
tree | 4166502cdf86261fc9cb964f35d98c55b1cff576 | |
parent | 01948f7e7ce9a57317f69440c9bfe2ac765b5d1e (diff) |
ahmed: Improve ordering of linus.onl-source.service
-rw-r--r-- | hosts/ahmed/linus.onl/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hosts/ahmed/linus.onl/default.nix b/hosts/ahmed/linus.onl/default.nix index b363bb1..5bedd24 100644 --- a/hosts/ahmed/linus.onl/default.nix +++ b/hosts/ahmed/linus.onl/default.nix @@ -71,8 +71,11 @@ in { # TODO: Harden service # Network must be online for us to check. - after = ["network-online.target"]; - requires = ["network-online.target"]; + # FIXME: This configuration still attempts to run without network/DNS/something, which fails and breaks automatic NixOS updrades. + # https://wiki.archlinux.org/title/Systemd#Running_services_after_the_network_is_up + # https://systemd.io/NETWORK_ONLINE/#discussion + after = ["network-online.target" "nss-lookup.target"]; + wants = ["network-online.target" "nss-lookup.target"]; # We must generate some files for NGINX to serve, so this should be run # before NGINX. |