···
wantedBy = [ "multi-user.target" ];
requiredBy = [ "${phpExecutionUnit}.service" ];
before = [ "${phpExecutionUnit}.service" ];
737
+
wants = [ "local-fs.target" ];
738
+
requires = lib.optional cfg.database.createLocally dbService;
after = lib.optional cfg.database.createLocally dbService;
738
-
requires = lib.optional cfg.database.createLocally dbService;
···
789
+
services.${phpExecutionUnit} = {
790
+
wantedBy = lib.optional (cfg.nginx != null) "nginx.service";
791
+
requiredBy = [ "movim.service" ];
792
+
before = [ "movim.service" ] ++ lib.optional (cfg.nginx != null) "nginx.service";
793
+
wants = [ "network.target" ];
794
+
requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
795
+
after = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
description = "Movim daemon";
wantedBy = [ "multi-user.target" ];
791
-
after = [ "movim-data-setup.service" ];
792
-
requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
807
+
"movim-data-setup.service"
808
+
"${phpExecutionUnit}.service"
810
+
++ lib.optional cfg.database.createLocally dbService
811
+
++ lib.optional (cfg.nginx != null) "nginx.service";
814
+
"movim-data-setup.service"
815
+
"${phpExecutionUnit}.service"
817
+
++ lib.optional cfg.database.createLocally dbService
818
+
++ lib.optional (cfg.nginx != null) "nginx.service";
PUBLIC_URL = "//${cfg.domain}";
WS_PORT = builtins.toString cfg.port;
···
WorkingDirectory = "${package}/share/php/movim";
ExecStart = "${lib.getExe package} start";
806
-
services.${phpExecutionUnit} = {
807
-
after = [ "movim-data-setup.service" ];
808
-
requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
tmpfiles.settings."10-movim" = with cfg; {