summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/ahmed/linus.onl/default.nix7
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.