3
0
Fork 0
forked from mirrors/nixpkgs

nixos/hoogle: add home option (#44103)

This commit is contained in:
Isaac Shapira 2018-07-30 04:27:07 -06:00 committed by Jörg Thalheim
parent 9250c264d8
commit a8febbc4eb

View file

@ -43,6 +43,12 @@ in {
defaultText = "pkgs.haskellPackages";
};
home = mkOption {
type = types.str;
description = "Url for hoogle logo";
default = "https://hoogle.haskell.org";
};
};
config = mkIf cfg.enable {
@ -53,7 +59,7 @@ in {
serviceConfig = {
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";
Group = "nogroup";