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

View File

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

13
atmega.nix Normal file
View 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}
'';
}