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} + ''; +}