nixos/tsocks: Add types to the options
This commit is contained in:
parent
b9d274b89d
commit
caa9ce1caa
@ -25,6 +25,7 @@ in
|
|||||||
services.tor.tsocks = {
|
services.tor.tsocks = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to build tsocks wrapper script to relay application traffic via Tor.
|
Whether to build tsocks wrapper script to relay application traffic via Tor.
|
||||||
@ -40,6 +41,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
server = mkOption {
|
server = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "localhost:9050";
|
default = "localhost:9050";
|
||||||
example = "192.168.0.20";
|
example = "192.168.0.20";
|
||||||
description = ''
|
description = ''
|
||||||
@ -48,6 +50,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
Extra configuration. Contents will be added verbatim to TSocks
|
Extra configuration. Contents will be added verbatim to TSocks
|
||||||
|
Loading…
Reference in New Issue
Block a user