Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #50950 from jonasnick/nixos-tor-hiddenservice-version
Browse files Browse the repository at this point in the history
nixos/tor: add HiddenServiceVersion option
  • Loading branch information
joachifm committed Nov 24, 2018
2 parents 651baa7 + 5640aa2 commit e426613
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nixos/modules/services/security/tor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ let
# Hidden services
+ concatStrings (flip mapAttrsToList cfg.hiddenServices (n: v: ''
HiddenServiceDir ${torDirectory}/onion/${v.name}
${optionalString (v.version != null) "HiddenServiceVersion ${toString v.version}"}
${flip concatMapStrings v.map (p: ''
HiddenServicePort ${toString p.port} ${p.destination}
'')}
Expand Down Expand Up @@ -667,6 +668,12 @@ in
};
}));
};

version = mkOption {
default = null;
description = "Rendezvous service descriptor version to publish for the hidden service. Currently, versions 2 and 3 are supported. (Default: 2)";
type = types.nullOr (types.enum [ 2 3 ]);
};
};

config = {
Expand Down

0 comments on commit e426613

Please sign in to comment.