Use array for args
This commit is contained in:
parent
461e5bdfcf
commit
e07331f052
1 changed files with 7 additions and 7 deletions
14
module.nix
14
module.nix
|
@ -22,8 +22,8 @@ in {
|
|||
};
|
||||
|
||||
args = lib.mkOption {
|
||||
type = lib.types.separatedString " ";
|
||||
default = "";
|
||||
type = with lib.types; listOf str;
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -37,11 +37,11 @@ in {
|
|||
|
||||
serviceConfig = {
|
||||
LoadCredential = ["matrixoidc-secrets:${cfg.jwtSecretFile}"];
|
||||
ExecStart = utils.escapeSystemdExecArgs [
|
||||
(lib.getExe cfg.package)
|
||||
cfg.args
|
||||
"--jwtSecretFile=/run/credentials/matrixoidc.service/matrixoidc-secrets"
|
||||
];
|
||||
ExecStart = utils.escapeSystemdExecArgs ([
|
||||
(lib.getExe cfg.package)
|
||||
"--jwtSecretFile=/run/credentials/matrixoidc.service/matrixoidc-secrets"
|
||||
]
|
||||
++ cfg.args);
|
||||
DynamicUser = true;
|
||||
LockPersonality = true;
|
||||
MemoryDenyWriteExecute = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue