nixpkgs/nixos/modules/hardware/keyboard/teck.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
330 B
Nix
Raw Normal View History

2021-04-19 11:57:32 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.hardware.keyboard.teck;
inherit (lib) mkEnableOption mkIf;
2021-04-19 11:57:32 +00:00
in
{
options.hardware.keyboard.teck = {
enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
2021-04-19 11:57:32 +00:00
};
config = mkIf cfg.enable {
services.udev.packages = [ pkgs.teck-udev-rules ];
};
}