diff options
author | Ben Sima <ben@bsima.me> | 2020-12-29 22:20:48 -0500 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2020-12-30 04:36:00 +0100 |
commit | dbf9750782d7a9eca40265cf028dd81423498cd5 (patch) | |
tree | fc615d9a509fa21c5a8a0c68fa0be0b06658c8e1 /nixos | |
parent | 0faf465099f17d7f4ee8e94c7707244e3f03f435 (diff) |
hoogle: set the host to bind on
Message-Id: <20201230032048.32626-1-ben@bsima.me>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/development/hoogle.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/services/development/hoogle.nix b/nixos/modules/services/development/hoogle.nix index cbf13f027de28..a661e3acae3e8 100644 --- a/nixos/modules/services/development/hoogle.nix +++ b/nixos/modules/services/development/hoogle.nix @@ -49,6 +49,11 @@ in { default = "https://hoogle.haskell.org"; }; + host = mkOption { + type = types.str; + description = "Set the host to bind on."; + default = "127.0.0.1"; + }; }; config = mkIf cfg.enable { @@ -59,7 +64,7 @@ in { serviceConfig = { Restart = "always"; - ExecStart = ''${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home}''; + ExecStart = ''${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home} --host ${cfg.host}''; DynamicUser = true; |