nixpkgs/nixos/modules/hardware/libjaylink.nix

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

28 lines
526 B
Nix
Raw Permalink Normal View History

{
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 ];
}