Follow best practice for getting package executables

This commit is contained in:
SebastianStork 2024-04-14 13:52:01 +02:00
parent 88f6309cd4
commit a90b2ed9fd
4 changed files with 9 additions and 8 deletions

View file

@ -82,7 +82,7 @@ in {
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.syncthingtray-minimal}/bin/syncthingtray --wait";
ExecStart = "${lib.getExe' pkgs.syncthingtray-minimal "syncthingtray"} --wait";
};
Install = {
WantedBy = ["graphical-session.target"];
@ -103,7 +103,7 @@ in {
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet";
ExecStart = "${lib.getExe pkgs.networkmanagerapplet}";
};
Install = {
WantedBy = ["graphical-session.target"];