From ee6170df5cf70895cc716e7ff7bbab3dd1bce2dc Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Mon, 5 Jan 2026 18:24:11 +0200 Subject: [PATCH] nixos/keyd: add package option --- nixos/modules/services/hardware/keyd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/keyd.nix b/nixos/modules/services/hardware/keyd.nix index b80395460c8d..db48e19dde4f 100644 --- a/nixos/modules/services/hardware/keyd.nix +++ b/nixos/modules/services/hardware/keyd.nix @@ -75,6 +75,8 @@ in options.services.keyd = { enable = lib.mkEnableOption "keyd, a key remapping daemon"; + package = lib.mkPackageOption pkgs "keyd" { }; + keyboards = lib.mkOption { type = lib.types.attrsOf (lib.types.submodule keyboardOptions); default = { }; @@ -138,7 +140,7 @@ in environment.KEYD_SOCKET = "/run/keyd/keyd.sock"; serviceConfig = { - ExecStart = "${pkgs.keyd}/bin/keyd"; + ExecStart = lib.getExe' cfg.package "keyd"; Restart = "always"; # TODO investigate why it doesn't work propeprly with DynamicUser