2021-05-20 23:46:22 +00:00
|
|
|
# NixOps configuration for Moonlander mechanical keyboard
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
# STM32 rules for the Moonlander and Planck EZ
|
|
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \
|
|
|
|
MODE:="0666", \
|
|
|
|
SYMLINK+="stm32_dfu"
|
|
|
|
# Live training rules
|
|
|
|
# Rule for all ZSA keyboards
|
|
|
|
SUBSYSTEM=="usb", ATTR{idVendor}=="3297", GROUP="plugdev"
|
|
|
|
# Rule for the Moonlander
|
|
|
|
SUBSYSTEM=="usb", ATTR{idVendor}=="3297", ATTR{idProduct}=="1969", GROUP="plugdev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
environment = {
|
2021-11-16 04:57:23 +00:00
|
|
|
systemPackages = with pkgs;
|
|
|
|
[
|
|
|
|
wally-cli # Flash firmware to mechanical keyboard
|
|
|
|
];
|
2021-05-20 23:46:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|