mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
feat: added moonlander
This commit is contained in:
parent
34f0140d51
commit
adad450256
1 changed files with 12 additions and 25 deletions
37
modules/nixos/hardware/moonlander/default.nix
Normal file → Executable file
37
modules/nixos/hardware/moonlander/default.nix
Normal file → Executable file
|
@ -1,28 +1,15 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.etc."udev/rules.d/50-zsa.rules".text = ''
|
hardware.keyboard.zsa.enable = true;
|
||||||
# Rules for Oryx web flashing and live training
|
|
||||||
KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", MODE="0664", GROUP="plugdev"
|
|
||||||
KERNEL=="hidraw*", ATTRS{idVendor}=="3297", MODE="0664", GROUP="plugdev"
|
|
||||||
|
|
||||||
# Legacy rules for live training over webusb (Not needed for firmware v21+)
|
environment = {
|
||||||
# Rule for all ZSA keyboards
|
enableAllTerminfo = true;
|
||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="3297", GROUP="plugdev"
|
systemPackages = builtins.attrValues {
|
||||||
# Rule for the Moonlander
|
inherit (pkgs)
|
||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="3297", ATTR{idProduct}=="1969", GROUP="plugdev"
|
zsa-udev-rules
|
||||||
# Rule for the Ergodox EZ
|
keymapp
|
||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="1307", GROUP="plugdev"
|
kontroll
|
||||||
# Rule for the Planck EZ
|
;
|
||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="6060", GROUP="plugdev"
|
};
|
||||||
|
};
|
||||||
# Wally Flashing rules for the Ergodox EZ
|
|
||||||
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666"
|
|
||||||
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666"
|
|
||||||
|
|
||||||
# Keymapp / Wally Flashing rules for the Moonlander and Planck EZ
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu"
|
|
||||||
# Keymapp Flashing rules for the Voyager
|
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="3297", MODE:="0666", SYMLINK+="ignition_dfu"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue