nixos/consul: fix package reference in service $PATH

This commit is contained in:
IndeedNotJames 2023-04-12 03:50:48 +02:00
parent db24d86dd8
commit 9c1f292155
No known key found for this signature in database
GPG key ID: 0AD773CE46FD0F87

View file

@ -210,7 +210,7 @@ in
ExecStop = "${cfg.package}/bin/consul leave";
});
path = with pkgs; [ iproute2 gnugrep gawk consul ];
path = with pkgs; [ iproute2 gawk cfg.package ];
preStart = let
family = if cfg.forceAddrFamily == "ipv6" then
"-6"