Add support for the polyglot steno keyboard
I bought a polyglot! I'm using embedded steno (so no plover for now) but
to use it with the WebHID interface I do still need to elevate my
permissions and put my keyboard into an editable state. This commit adds
udev support for using https://www.lim.au/#/software/javelin-steno to
edit keyboard options
Change-Id: I5ce577637f2f33d4a8c8726892dd2a41fd632d71
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/525
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/nixos/users/default.nix b/modules/nixos/users/default.nix
index 8227086..1e2c63a 100644
--- a/modules/nixos/users/default.nix
+++ b/modules/nixos/users/default.nix
@@ -7,6 +7,7 @@
extraGroups = [
"wheel"
"input"
+ "dialout"
];
openssh.authorizedKeys.keys = [
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIIteIdlZv52nUDxW2SUsoJ2NZi/w9j1NZwuHanQ/o/DuAAAAHnNzaDpjb2xsYWJvcmFfeXViaWtleV9yZXNpZGVudA== collabora_yubikey_resident"
diff --git a/systems/x86_64-linux/greylag/default.nix b/systems/x86_64-linux/greylag/default.nix
index fd24dac..ae93033 100644
--- a/systems/x86_64-linux/greylag/default.nix
+++ b/systems/x86_64-linux/greylag/default.nix
@@ -8,6 +8,7 @@
./cpu
./firmware
./games
+ ./keyboard
./networking
./time
./users
diff --git a/systems/x86_64-linux/greylag/keyboard/default.nix b/systems/x86_64-linux/greylag/keyboard/default.nix
new file mode 100644
index 0000000..f65cdac
--- /dev/null
+++ b/systems/x86_64-linux/greylag/keyboard/default.nix
@@ -0,0 +1,5 @@
+{
+ services.udev.extraRules = ''
+ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="9000", ATTRS{idProduct}=="400d", MODE="0660", GROUP="dialout"
+ '';
+}
\ No newline at end of file