mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
nixos/komga: use lib.getExe
This commit is contained in:
parent
b18bcf3a04
commit
636584b3ff
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user