Add blink1 udev rules

This commit is contained in:
Erwin Boskma 2022-05-31 11:37:51 +02:00
parent 72bbdea344
commit af1ba97298
Signed by: erwin
GPG key ID: 270B20D17394F7E5
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ mkDerivation, lib }:
let
udevRules = ''
'';
in
mkDerivation
{
pname = "blink1-udev-rules";
version = "20220531093409";
src = ./.;
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/lib/udev/rules.d
echo 'ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", TAG+="uaccess"' > $out/lib/udev/rules.d/51-blink1.rules
'';
meta = with lib; {
description = "udev rules for blink1";
license = licenses.mit;
maintainers = [
{
email = "erwin@datarift.nl";
github = "eboskma";
name = "Erwin Boskma";
}
];
platforms = platforms.linux;
homepage = "https://blink1.thingm.com";
};
}

View file

@ -10,6 +10,10 @@ with lib; let
inherit (pkgs.stdenv) mkDerivation;
inherit lib;
};
blink1Rules = pkgs.callPackage ./blink1-udev {
inherit (pkgs.stdenv) mkDerivation;
inherit lib;
};
in
{
options.eboskma.base = {
@ -67,6 +71,7 @@ in
extraRules = qmkUdevRules;
packages = [
probersRules
blink1Rules
];
};
};