Add udev rules for my keyboard.

This commit is contained in:
Gabriel Ebner 2019-02-27 11:16:03 +01:00
parent 78b51d787e
commit 32597895e5
2 changed files with 14 additions and 0 deletions

@ -8,6 +8,7 @@
./uefi.nix ./uefi.nix
./fstrim.nix ./fstrim.nix
./qemu-user.nix ./qemu-user.nix
./atmega.nix
]; ];
environment.etc."lvm/lvm.conf".text = '' environment.etc."lvm/lvm.conf".text = ''

13
atmega.nix Normal file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
services.udev.extraRules =
let action = '' OWNER := "gebner" ''; in ''
# Atmel ATMega32U4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", ${action}
# Atmel USBKEY AT90USB1287
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", ${action}
# Atmel ATMega32U2
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", ${action}
'';
}