diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-04-07 13:20:20 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-04-07 14:26:11 +0200 |
commit | 8b793d1916387c67f8eeb137789b1b41a1f94537 (patch) | |
tree | 93756cdebb281eaf3d3ee8c435f3b62b480e282e /nixos/modules/services/misc/taskserver | |
parent | 04fa5dcdb8a6fc6b4d9fce101c093031f4d52168 (diff) | |
download | nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.tar nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.tar.gz nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.tar.bz2 nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.tar.lz nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.tar.xz nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.tar.zst nixlib-8b793d1916387c67f8eeb137789b1b41a1f94537.zip |
nixos/taskserver: Rename client.{allow,deny}
These values match against the client IDs only, so let's rename it to something that actually reflects that. Having client.cert in the same namespace also could lead to confusion, because the client.cert setting is for the *debugging* client only. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/modules/services/misc/taskserver')
-rw-r--r-- | nixos/modules/services/misc/taskserver/default.nix | 70 |
1 files changed, 33 insertions, 37 deletions
diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index 58e7377ec9c5..1279e548c2a1 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -39,8 +39,8 @@ let # client ${mkConfLine "client.cert" cfg.client.cert} - ${mkConfLine "client.allow" cfg.client.allow} - ${mkConfLine "client.deny" cfg.client.deny} + ${mkConfLine "client.allow" cfg.allowedClientIDs} + ${mkConfLine "client.deny" cfg.disallowedClientIDs} # server server = ${cfg.server.host}:${toString cfg.server.port} @@ -196,45 +196,41 @@ in { ''; }; - client = { - - allow = mkOption { - type = with types; loeOf (either (enum ["all" "none"]) str); - default = []; - example = [ "[Tt]ask [2-9]+" ]; - description = '' - A list of regular expressions that are matched against the reported - client id (such as <literal>task 2.3.0</literal>). - - The values <literal>all</literal> or <literal>none</literal> have - special meaning. Overidden by any entry in the option - <option>services.taskserver.client.deny</option>. - ''; - }; + allowedClientIDs = mkOption { + type = with types; loeOf (either (enum ["all" "none"]) str); + default = []; + example = [ "[Tt]ask [2-9]+" ]; + description = '' + A list of regular expressions that are matched against the reported + client id (such as <literal>task 2.3.0</literal>). - cert = mkOption { - type = types.nullOr types.path; - default = null; - description = '' - Fully qualified path of the client cert. This is used by the - <command>client</command> command. - ''; - }; + The values <literal>all</literal> or <literal>none</literal> have + special meaning. Overidden by any entry in the option + <option>services.taskserver.client.deny</option>. + ''; + }; - deny = mkOption { - type = with types; loeOf (either (enum ["all" "none"]) str); - default = []; - example = [ "[Tt]ask [2-9]+" ]; - description = '' - A list of regular expressions that are matched against the reported - client id (such as <literal>task 2.3.0</literal>). + disallowedClientIDs = mkOption { + type = with types; loeOf (either (enum ["all" "none"]) str); + default = []; + example = [ "[Tt]ask [2-9]+" ]; + description = '' + A list of regular expressions that are matched against the reported + client id (such as <literal>task 2.3.0</literal>). - The values <literal>all</literal> or <literal>none</literal> have - special meaning. Any entry here overrides these in - <option>services.taskserver.client.allow</option>. - ''; - }; + The values <literal>all</literal> or <literal>none</literal> have + special meaning. Any entry here overrides these in + <option>services.taskserver.client.allow</option>. + ''; + }; + client.cert = mkOption { + type = types.nullOr types.path; + default = null; + description = '' + Fully qualified path of the client cert. This is used by the + <command>client</command> command. + ''; }; server = { |