nixos/hoogle: add extraOptions
This commit is contained in:
parent
f945939fd6
commit
38261d9556
1 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue