Added keyboard profile
This commit is contained in:
parent
5c65ce2f9e
commit
0bfcef0578
|
@ -13,6 +13,7 @@
|
||||||
../profiles/haskell-dev.nix # Haskel dev environment
|
../profiles/haskell-dev.nix # Haskel dev environment
|
||||||
../profiles/host_common.nix # Common host configuration options
|
../profiles/host_common.nix # Common host configuration options
|
||||||
../profiles/iohk.nix # IOHK environment
|
../profiles/iohk.nix # IOHK environment
|
||||||
|
../profiles/keyboard.nix
|
||||||
../profiles/neomutt.nix # Neomutt email
|
../profiles/neomutt.nix # Neomutt email
|
||||||
../profiles/nix-community.nix # Nix community aarch64 tooling
|
../profiles/nix-community.nix # Nix community aarch64 tooling
|
||||||
../profiles/nix-mio-ops.nix # mio-ops Nix tooling
|
../profiles/nix-mio-ops.nix # mio-ops Nix tooling
|
||||||
|
|
25
profiles/keyboard.nix
Normal file
25
profiles/keyboard.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# 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 = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
wally-cli # Flash firmware to mechanical keyboard
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue