1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

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";