summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/development
diff options
context:
space:
mode:
authorDCsunset <DCsunset@protonmail.com>2024-03-06 22:12:41 -0500
committerDCsunset <DCsunset@protonmail.com>2024-03-06 22:12:41 -0500
commit38261d955670cfebe1653700af56a6a6cabdfd12 (patch)
tree7153cfc2b0623e6a61023db7af356a0e21faf62f /nixos/modules/services/development
parentf945939fd679284d736112d3d5410eb867f3b31c (diff)
nixos/hoogle: add extraOptions
Diffstat (limited to 'nixos/modules/services/development')
-rw-r--r--nixos/modules/services/development/hoogle.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/nixos/modules/services/development/hoogle.nix b/nixos/modules/services/development/hoogle.nix
index 88dd01fd8aab..c90bb7f01902 100644
--- a/nixos/modules/services/development/hoogle.nix
+++ b/nixos/modules/services/development/hoogle.nix
@@ -56,6 +56,16 @@ in {
description = lib.mdDoc "Set the host to bind on.";
default = "127.0.0.1";
};
+
+ extraOptions = mkOption {
+ type = types.listOf types.str;
+ default = [];
+ example = [ "--no-security-headers" ];
+ description = lib.mdDoc ''
+ Additional command-line arguments to pass to
+ {command}`hoogle server`
+ '';
+ };
};
config = mkIf cfg.enable {
@@ -66,7 +76,10 @@ in {
serviceConfig = {
Restart = "always";
- ExecStart = ''${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home} --host ${cfg.host}'';
+ ExecStart = ''
+ ${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home} --host ${cfg.host} \
+ ${concatStringsSep " " cfg.extraOptions}
+ '';
DynamicUser = true;