From 26e013d88f9f7f868aebe7493a4130dc2dded2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 8 Jan 2025 21:21:11 -0300 Subject: [PATCH] factorio: wait for network connection before starting --- hosts/monolith/factorio-server.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/monolith/factorio-server.nix b/hosts/monolith/factorio-server.nix index 3c893a5..211e746 100644 --- a/hosts/monolith/factorio-server.nix +++ b/hosts/monolith/factorio-server.nix @@ -10,6 +10,11 @@ extraSettingsFile = config.age.secrets.factorio-settings.path; }; + systemd.services.factorio = { + after = [ "network-online.target" ]; + wants = [ "network-online.target" ]; + }; + age.secrets.factorio-settings = { file = ../../secrets/factorio-settings.age; mode = "777";