git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #107936 from andir/ml2pr/hoogle-set-the-host-to-bind-on

hoogle: set the host to bind on

commitf41f0643f851ce2454958802a21bc48fdd463012 authorAndreas Rammhold <andreas@rammhold.de> dateWed 6 Jan 2021, 12:31 (6 years ago) parent0425b4cdbf9750
1 file changed+6−1
nixos/modules/services/development/hoogle.nix+6−1
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