From ce0970e19baa3555b919b79d6c5359f2a32f9d08 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Mon, 17 Mar 2025 21:33:00 -0700 Subject: [PATCH] nixos/evremap: get rid of unecessary bash Using `systemd.services..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. --- nixos/modules/services/misc/evremap.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/evremap.nix b/nixos/modules/services/misc/evremap.nix index ee433aecbf5f..d02d9726f43a 100644 --- a/nixos/modules/services/misc/evremap.nix +++ b/nixos/modules/services/misc/evremap.nix @@ -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 = [