fix exec
This commit is contained in:
@@ -60,12 +60,14 @@ lib.mkIf hasMailDiscoveryConfig (
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
ExecStart = "${pkgs.python3}/bin/python3 \
|
||||
${generatorScript} \
|
||||
--domain ${domain} \
|
||||
--mail-host ${cfg.fqdn} \
|
||||
--radicale-host ${radicaleHost} \
|
||||
--port ${toString mobileconfigPort}${defaultUsernameArg}${accountArgs}";
|
||||
ExecStart = lib.concatStringsSep " " [
|
||||
"${pkgs.python3}/bin/python3"
|
||||
"${generatorScript}"
|
||||
"--domain" domain
|
||||
"--mail-host" cfg.fqdn
|
||||
"--radicale-host" radicaleHost
|
||||
"--port" (toString mobileconfigPort)
|
||||
] + defaultUsernameArg + accountArgs;
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectHome = true;
|
||||
|
||||
Reference in New Issue
Block a user