mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/keyd: add package option (#477200)
This commit is contained in:
commit
7599bbf2a3
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue