nixos/cntlm: add types
This commit is contained in:
parent
6d96b2655e
commit
5f472181f2
|
@ -36,12 +36,14 @@ in
|
||||||
enable = mkEnableOption "cntlm, which starts a local proxy";
|
enable = mkEnableOption "cntlm, which starts a local proxy";
|
||||||
|
|
||||||
username = mkOption {
|
username = mkOption {
|
||||||
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Proxy account name, without the possibility to include domain name ('at' sign is interpreted literally).
|
Proxy account name, without the possibility to include domain name ('at' sign is interpreted literally).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
domain = mkOption {
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
description = "Proxy account domain/workgroup name.";
|
description = "Proxy account domain/workgroup name.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -60,6 +62,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
proxy = mkOption {
|
proxy = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
description = ''
|
description = ''
|
||||||
A list of NTLM/NTLMv2 authenticating HTTP proxies.
|
A list of NTLM/NTLMv2 authenticating HTTP proxies.
|
||||||
|
|
||||||
|
@ -75,11 +78,13 @@ in
|
||||||
A list of domains where the proxy is skipped.
|
A list of domains where the proxy is skipped.
|
||||||
'';
|
'';
|
||||||
default = [];
|
default = [];
|
||||||
|
type = types.listOf types.str;
|
||||||
example = [ "*.example.com" "example.com" ];
|
example = [ "*.example.com" "example.com" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
default = [3128];
|
default = [3128];
|
||||||
|
type = types.listOf types.port;
|
||||||
description = "Specifies on which ports the cntlm daemon listens.";
|
description = "Specifies on which ports the cntlm daemon listens.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue