Skip to content

Commit ce0970e

Browse files
committed
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.
1 parent 3549532 commit ce0970e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nixos/modules/services/misc/evremap.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ in
131131
description = "evremap - keyboard input remapper";
132132
wantedBy = [ "multi-user.target" ];
133133

134-
script = "${lib.getExe pkgs.evremap} remap ${configFile}";
135-
136134
serviceConfig = {
135+
ExecStart = "${lib.getExe pkgs.evremap} remap ${configFile}";
136+
137137
DynamicUser = true;
138138
User = "evremap";
139139
SupplementaryGroups = [

0 commit comments

Comments
 (0)