~afontaine/nix unlisted

33e2dbd46e141152a7c61762aad74ff1e510d62a — Andrew Fontaine a month ago 2d98b29
duchess: Add udev rules for QMK

So I can play with my GMMK Pro!
2 files changed, 24 insertions(+), 5 deletions(-)

M duchess/default.nix
A duchess/qmk.nix
M duchess/default.nix => duchess/default.nix +3 -5
@@ 163,11 163,9 @@
  # };
  services.fwupd.enable = true;
  services.pcscd.enable = true;
  services.udev.packages = with pkgs; [
    yubikey-personalization
    libu2f-host
    gnome3.gnome-settings-daemon
  ];
  services.udev.packages = with pkgs;
    let qmk = callPackage ./qmk.nix { };
    in [ yubikey-personalization libu2f-host gnome3.gnome-settings-daemon qmk ];

  # List services that you want to enable:


A duchess/qmk.nix => duchess/qmk.nix +21 -0
@@ 0,0 1,21 @@
{ lib, fetchFromGitHub, stdenv }:
let version = "0.13.0";
in stdenv.mkDerivation {
  inherit version;
  pname = "qmk-udev";

  src = fetchFromGitHub {
    owner = "qmk";
    repo = "qmk_firmware";
    rev = version;
    sha256 = "0CVYDoAwzzoxY8FncvJEXhBCY+svnldB1h35OQ+0+VA=";
  };

  dontBuild = true;
  dontCheck = true;

  installPhase = ''
    mkdir -p $out/lib/udev/rules.d
    cp util/udev/50-qmk.rules $out/lib/udev/rules.d
  '';
}