From c0e386328a178dd4c39465fda6a694ba9e9652fb Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 13 Mar 2025 12:32:35 +0100 Subject: ahmed: Improve ordering of linus.onl-source.service --- hosts/ahmed/linus.onl/default.nix | 7 +++++-- 1 file 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. -- cgit v1.2.3