From 521d3689fbc935062647ef94e3ace8208df1f5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=BA=E0=B8=95=E0=B8=B1?= =?UTF-8?q?=E0=B8=A5?= Date: Wed, 12 Mar 2025 14:13:08 +0700 Subject: [PATCH] nixos/movim: move phpExecutionUnit service in requires order --- nixos/modules/services/web-apps/movim.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index 081689f8812e..5eb7231a1523 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -786,6 +786,15 @@ in ); }; + services.${phpExecutionUnit} = { + wantedBy = lib.optional (cfg.nginx != null) "nginx.service"; + requiredBy = [ "movim.service" ]; + before = [ "movim.service" ] ++ lib.optional (cfg.nginx != null) "nginx.service"; + wants = [ "network.target" ]; + requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService; + after = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService; + }; + services.movim = { description = "Movim daemon"; wantedBy = [ "multi-user.target" ]; @@ -820,15 +829,6 @@ in }; }; - services.${phpExecutionUnit} = { - wantedBy = lib.optional (cfg.nginx != null) "nginx.service"; - requiredBy = [ "movim.service" ]; - before = [ "movim.service" ] ++ lib.optional (cfg.nginx != null) "nginx.service"; - wants = [ "network.target" ]; - requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService; - after = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService; - }; - tmpfiles.settings."10-movim" = with cfg; { "${dataDir}".d = { inherit user group;