From 47cf2e3d715ccc0847db83ebd2324970fd43fb10 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Sun, 30 Mar 2025 20:25:56 -0700 Subject: [PATCH] [qmk] Adds QMK support --- system/hosts/drew-desktop/configuration.nix | 4 ++++ system/hosts/drew-desktop/qmk.nix | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 system/hosts/drew-desktop/qmk.nix diff --git a/system/hosts/drew-desktop/configuration.nix b/system/hosts/drew-desktop/configuration.nix index 5ebb3c6..474a8de 100644 --- a/system/hosts/drew-desktop/configuration.nix +++ b/system/hosts/drew-desktop/configuration.nix @@ -9,6 +9,10 @@ }: { + imports = [ + ./qmk.nix + ]; + networking.hostName = "drew-desktop"; # Define your hostname. # Configure network proxy if necessary diff --git a/system/hosts/drew-desktop/qmk.nix b/system/hosts/drew-desktop/qmk.nix new file mode 100644 index 0000000..d2a114d --- /dev/null +++ b/system/hosts/drew-desktop/qmk.nix @@ -0,0 +1,12 @@ +# See https://nixos.wiki/wiki/Qmk +{ pkgs, ... }: +{ + # Allows access to keyboard configuration as a non-root user. + hardware.keyboard.qmk.enable = true; + + # Add VIA to udev for firmwares that support it. + environment.systemPackages = with pkgs; [ + via + ]; + services.udev.packages = [ pkgs.via ]; +}