diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2021-01-06 12:31:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 12:31:59 +0100 |
commit | f41f0643f851ce2454958802a21bc48fdd463012 (patch) | |
tree | 754f88c8257afbbf26c7fc66fef1bc53629bf4a5 /nixos | |
parent | 0425b4c1d18a81ba7558c1e9e02475d5611144ed (diff) | |
parent | dbf9750782d7a9eca40265cf028dd81423498cd5 (diff) |
Merge pull request #107936 from andir/ml2pr/hoogle-set-the-host-to-bind-on
hoogle: set the host to bind on
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 cbf13f027de2..a661e3acae3e 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; |