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 ]; +}