Unverified Commit df207422 authored by Sleeping-Donut's avatar Sleeping-Donut Committed by GitHub
Browse files

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: default avatarAnderson Torres <torres.anderson.85@protonmail.com>

---------

Co-authored-by: default avatarAnderson Torres <torres.anderson.85@protonmail.com>
parent 112d505c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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";
      };
    };