mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
28 lines
526 B
Nix
28 lines
526 B
Nix
![]() |
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.hardware.libjaylink;
|
||
|
in
|
||
|
{
|
||
|
options.hardware.libjaylink = {
|
||
|
enable = lib.mkEnableOption ''
|
||
|
udev rules for devices supported by libjaylink.
|
||
|
Add users to the `jlink` group in order to grant
|
||
|
them access
|
||
|
'';
|
||
|
package = lib.mkPackageOption pkgs "libjaylink" { };
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
users.groups.jlink = { };
|
||
|
services.udev.packages = [ cfg.package ];
|
||
|
};
|
||
|
|
||
|
meta.maintainers = with lib.maintainers; [ felixsinger ];
|
||
|
}
|