diff options
-rw-r--r-- | nixos/modules/services/misc/taskserver/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index 70e162904e98d..d82e9f77ea6ae 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -94,7 +94,7 @@ let in flatten (mapAttrsToList mkSublist attrs); in all isNull (findPkiDefinitions [] manualPkiOptions); - configFile = pkgs.writeText "taskdrc" '' + configFile = pkgs.writeText "taskdrc" ('' # systemd related daemon = false log = - @@ -130,7 +130,7 @@ let server.key = ${cfg.pki.server.key} server.crl = ${cfg.pki.server.crl} ''} - ''; + '' + cfg.extraConfig); orgOptions = { name, ... }: { options.users = mkOption { @@ -363,6 +363,15 @@ in { pki.manual = manualPkiOptions; pki.auto = autoPkiOptions; + + extraConfig = mkOption { + type = types.lines; + default = ""; + example = "client.cert = /tmp/debugging.cert"; + description = '' + Extra lines to append to the taskdrc configuration file. + ''; + }; }; }; |