Add udev rules for my keyboard.
This commit is contained in:
parent
78b51d787e
commit
32597895e5
@ -8,6 +8,7 @@
|
||||
./uefi.nix
|
||||
./fstrim.nix
|
||||
./qemu-user.nix
|
||||
./atmega.nix
|
||||
];
|
||||
|
||||
environment.etc."lvm/lvm.conf".text = ''
|
||||
|
13
atmega.nix
Normal file
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}
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user