nixos/teeworlds: use lib.getExe instead of hardcoded path

This commit is contained in:
eyjhb 2024-09-10 11:40:24 +02:00
parent e233e7d385
commit a719f91a85
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -418,7 +418,7 @@ in
-i ${teeworldsConf} \
-o /run/teeworlds/teeworlds.yaml
'';
ExecStart = "${cfg.package}/bin/teeworlds_srv -f /run/teeworlds/teeworlds.yaml";
ExecStart = "${lib.getExe cfg.package} -f /run/teeworlds/teeworlds.yaml";
# Hardening
CapabilityBoundingSet = false;