nixos: Add working directory config option to quickpeepSearch
This commit is contained in:
parent
6d37a07d3e
commit
63f94577c9
@ -49,6 +49,14 @@ with lib;
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
workingDir = mkOption {
|
||||||
|
type = with types; path;
|
||||||
|
description = ''
|
||||||
|
Path to a working directory to run the web interface and indexer from.
|
||||||
|
This is the base from which paths in the config file are looked up from.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
autoIndexUrl = mkOption {
|
autoIndexUrl = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr str;
|
||||||
@ -80,6 +88,7 @@ with lib;
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "${cfg.user}";
|
User = "${cfg.user}";
|
||||||
ExecStart = ''${quickpeep}/bin/quickpeep ${cfg.bindHost}:${builtins.toString cfg.bindPort}'';
|
ExecStart = ''${quickpeep}/bin/quickpeep ${cfg.bindHost}:${builtins.toString cfg.bindPort}'';
|
||||||
|
WorkingDirectory = cfg.workingDir;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -90,6 +99,7 @@ with lib;
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "${cfg.user}";
|
User = "${cfg.user}";
|
||||||
ExecStart = ''${quickpeep}/bin/qp-indexer --config ${lib.strings.escapeShellArg cfg.configPath} --feed ${lib.strings.escapeShellArg cfg.autoIndexUrl}'';
|
ExecStart = ''${quickpeep}/bin/qp-indexer --config ${lib.strings.escapeShellArg cfg.configPath} --feed ${lib.strings.escapeShellArg cfg.autoIndexUrl}'';
|
||||||
|
WorkingDirectory = cfg.workingDir;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user