nixos/evremap: get rid of unecessary bash

Using `systemd.services.<name>.script` pulls in bash in the ExecStart
line for a service. Since our "script" was only one line anyways,
we can inline it to just use ExecStart directly. Losing shell features
shouldn't be detrimental here, as we're not using pipes and there are
no globs to expand.
This commit is contained in:
Jared Baur 2025-03-17 21:33:00 -07:00
parent 3549532663
commit ce0970e19b
No known key found for this signature in database

View File

@ -131,9 +131,9 @@ in
description = "evremap - keyboard input remapper";
wantedBy = [ "multi-user.target" ];
script = "${lib.getExe pkgs.evremap} remap ${configFile}";
serviceConfig = {
ExecStart = "${lib.getExe pkgs.evremap} remap ${configFile}";
DynamicUser = true;
User = "evremap";
SupplementaryGroups = [