hoogle: set the host to bind on
Message-Id: <20201230032048.32626-1-ben@bsima.me>
commitdbf9750782d7a9eca40265cf028dd81423498cd5
authorBen Sima <ben@bsima.me>
dateTue 29 Dec 2020, 22:20 (6 years ago)
parent0faf465
nixos/modules/services/development/hoogle.nix+6−1
@@ -49,6 +49,11 @@ in {
4949 default = "https://hoogle.haskell.org";
5050 };
5151
52+ host = mkOption {
53+ type = types.str;
54+ description = "Set the host to bind on.";
55+ default = "127.0.0.1";
56+ };
5257 };
5358
5459 config = mkIf cfg.enable {
@@ -59,7 +64,7 @@ in {
5964
6065 serviceConfig = {
6166 Restart = "always";
62− ExecStart = ''${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home}'';
67+ ExecStart = ''${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home} --host ${cfg.host}'';
6368
6469 DynamicUser = true;
6570