nixos/hoogle: add home option (#44103)
This commit is contained in:
parent
9250c264d8
commit
a8febbc4eb
|
@ -43,6 +43,12 @@ in {
|
||||||
defaultText = "pkgs.haskellPackages";
|
defaultText = "pkgs.haskellPackages";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "Url for hoogle logo";
|
||||||
|
default = "https://hoogle.haskell.org";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -53,7 +59,7 @@ in {
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
ExecStart = ''${hoogleEnv}/bin/hoogle server --local -p ${toString cfg.port}'';
|
ExecStart = ''${hoogleEnv}/bin/hoogle server --local --port ${toString cfg.port} --home ${cfg.home}'';
|
||||||
|
|
||||||
User = "nobody";
|
User = "nobody";
|
||||||
Group = "nogroup";
|
Group = "nogroup";
|
||||||
|
|
Loading…
Reference in New Issue