From 32597895e5381285ad526212260102d14f5a7e06 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Wed, 27 Feb 2019 11:16:03 +0100 Subject: [PATCH] Add udev rules for my keyboard. --- archachatina.nix | 1 + atmega.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 atmega.nix diff --git a/archachatina.nix b/archachatina.nix index 36e76ec..2ea435f 100644 --- a/archachatina.nix +++ b/archachatina.nix @@ -8,6 +8,7 @@ ./uefi.nix ./fstrim.nix ./qemu-user.nix + ./atmega.nix ]; environment.etc."lvm/lvm.conf".text = '' diff --git a/atmega.nix b/atmega.nix new file mode 100644 index 0000000..7dc2150 --- /dev/null +++ b/atmega.nix @@ -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} + ''; +}