nixos/komga: use lib.getExe

This commit is contained in:
nuko 2024-03-01 15:12:45 +13:00 committed by nu-nu-ko
parent b18bcf3a04
commit 636584b3ff
No known key found for this signature in database

View File

@ -49,7 +49,7 @@ in
config =
let
inherit (lib) mkIf;
inherit (lib) mkIf getExe;
in
mkIf cfg.enable {
@ -84,7 +84,7 @@ in
Type = "simple";
Restart = "on-failure";
ExecStart = "${pkgs.komga}/bin/komga";
ExecStart = getExe pkgs.komga;
StateDirectory = mkIf (cfg.stateDir == "/var/lib/komga") "komga";