Fix zmkBATx at startup

This commit is contained in:
Andrea Ciceri 2024-10-03 21:53:22 +02:00
parent 1d4f9fecdc
commit 916cc95918
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -16,7 +16,9 @@
};
Service = {
ExecStart = "sleep 5 && ${lib.getExe pkgs.zmkBATx}";
ExecStart = ''
${pkgs.runtimeShell} -l -c "${lib.getExe' pkgs.busybox "sleep"} 5 && ${lib.getExe pkgs.zmkBATx}"
'';
Restart = "on-failure";
RestartSec = 3;
};