pc: add tools to make using the ZSA Ergodox easier

This commit is contained in:
Colin 2024-06-28 10:24:47 +00:00
parent e641f5c93a
commit fc5068f4d4
5 changed files with 27 additions and 0 deletions

View File

@ -177,6 +177,8 @@ in
"nixpkgs-review"
"sane-scripts.dev"
"sequoia"
"wally-cli"
"zsa-udev-rules"
];
consoleMediaUtils = declPackageSet [
@ -363,6 +365,7 @@ in
"inkscape"
# "jellyfin-media-player"
"kdenlive"
"keymapp"
# "kid3" # audio tagging
"krita"
"libreoffice" # TODO: replace with an office suite that uses saner packaging?

View File

@ -76,6 +76,7 @@
./imagemagick.nix
./jellyfin-media-player.nix
./kdenlive.nix
./keymapp.nix
./komikku.nix
./koreader
./less.nix
@ -153,6 +154,7 @@
./tuba.nix
./unl0kr
./vlc.nix
./wally-cli.nix
./waybar
./waylock.nix
./where-am-i.nix
@ -171,6 +173,7 @@
./zeal.nix
./zecwallet-lite.nix
./zulip.nix
./zsa-udev-rules.nix
./zsh
];

View File

@ -0,0 +1,8 @@
# ZSA keyboard (Ergodox, Moonlander, ...) firmware flasher and keymap viewer.
# video: <https://www.zsa.io/flash>
# displays on launch:
# - "Error connecting to the keyboard, make sure the layout flashed on your keyboard was recently compiled with Oryx and that the [Live training] option is toggled on in the advanced settings."
{ ... }:
{
sane.programs.keymapp = {};
}

View File

@ -0,0 +1,5 @@
# wally-cli: allows flashing firmware to keyboards like ZSA Ergodox.
{ ... }:
{
sane.programs.wally-cli = {};
}

View File

@ -0,0 +1,8 @@
{ config, lib, ... }:
let
cfg = config.sane.programs.zsa-udev-rules;
in
{
sane.programs.zsa-udev-rules.sandbox.enable = false;
services.udev.packages = lib.mkIf cfg.enabled [ cfg.package ];
}