0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge pull request #29521 from aneeshusa/ease-radicale-upgrade

Ease radicale upgrade
This commit is contained in:
Franz Pletz 2017-09-18 23:13:53 +02:00 committed by GitHub
commit 406c7a0731
4 changed files with 92 additions and 16 deletions

View file

@ -48,6 +48,12 @@ in
configuration file.
'';
};
services.radicale.extraArgs = mkOption {
type = types.listOf types.string;
default = [];
description = "Extra arguments passed to the Radicale daemon.";
};
};
config = mkIf cfg.enable {
@ -71,7 +77,11 @@ in
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${cfg.package}/bin/radicale -C ${confFile} -f";
ExecStart = concatStringsSep " " ([
"${cfg.package}/bin/radicale" "-C" confFile
] ++ (
map escapeShellArg cfg.extraArgs
));
User = "radicale";
Group = "radicale";
};