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;