mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
ombi: allow overriding package in module (#345814)
* ombi: allow overriding package in module * nixos/ombi: replace explicit bin path with getExe function Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com> --------- Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
This commit is contained in:
parent
112d505ce4
commit
df20742283
@ -12,6 +12,8 @@ in {
|
||||
on how to set up a reverse proxy
|
||||
'';
|
||||
|
||||
package = lib.mkPackageOption pkgs "ombi" { };
|
||||
|
||||
dataDir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "/var/lib/ombi";
|
||||
@ -58,7 +60,7 @@ in {
|
||||
Type = "simple";
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
ExecStart = "${pkgs.ombi}/bin/Ombi --storage '${cfg.dataDir}' --host 'http://*:${toString cfg.port}'";
|
||||
ExecStart = "${lib.getExe cfg.package} --storage '${cfg.dataDir}' --host 'http://*:${toString cfg.port}'";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user