about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authormarkuskowa <markus.kowalewski@gmail.com>2020-01-09 21:33:18 +0100
committerGitHub <noreply@github.com>2020-01-09 21:33:18 +0100
commit59670b0c561aca30a4c301aa162678576de05159 (patch)
treeabc54d411b7ce3769194ba0d86bb24b4b206c0bd /nixos
parent3ad5206263084d3563975b4bc241614bedfcbe79 (diff)
parentcaa9ce1caac4b6e0e91f5693195345bfcb1be583 (diff)
downloadnixlib-59670b0c561aca30a4c301aa162678576de05159.tar
nixlib-59670b0c561aca30a4c301aa162678576de05159.tar.gz
nixlib-59670b0c561aca30a4c301aa162678576de05159.tar.bz2
nixlib-59670b0c561aca30a4c301aa162678576de05159.tar.lz
nixlib-59670b0c561aca30a4c301aa162678576de05159.tar.xz
nixlib-59670b0c561aca30a4c301aa162678576de05159.tar.zst
nixlib-59670b0c561aca30a4c301aa162678576de05159.zip
Merge pull request #76939 from lourkeur/fix_76184_tsocks
nixos/tsocks: Add types to the options
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/security/torify.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/security/torify.nix b/nixos/modules/services/security/torify.nix
index 08da726437ea..39551190dd33 100644
--- a/nixos/modules/services/security/torify.nix
+++ b/nixos/modules/services/security/torify.nix
@@ -25,6 +25,7 @@ in
     services.tor.tsocks = {
 
       enable = mkOption {
+        type = types.bool;
         default = false;
         description = ''
           Whether to build tsocks wrapper script to relay application traffic via Tor.
@@ -40,6 +41,7 @@ in
       };
 
       server = mkOption {
+        type = types.str;
         default = "localhost:9050";
         example = "192.168.0.20";
         description = ''
@@ -48,6 +50,7 @@ in
       };
 
       config = mkOption {
+        type = types.lines;
         default = "";
         description = ''
           Extra configuration. Contents will be added verbatim to TSocks