From 1e350b655f3875b4e186fa4390b6670e445a2be7 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 21 Mar 2023 08:24:58 -0700 Subject: [PATCH] Tweak the prerequisites of the systemd job. --- module.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module.nix b/module.nix index 4a71761..611dead 100644 --- a/module.nix +++ b/module.nix @@ -93,7 +93,8 @@ in { config = mkIf cfg.enable { systemd.services.suanni-server = { path = [ suanni-server ]; - wantedBy = [ "network-online.target" ]; + wantedBy = [ "default.target" ]; + after = [ "network-online.target" ]; serviceConfig = { DynamicUser = true; LoadCredential = [