From 5d640c6dbb9708296b761c8de89565043962c0a7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 20 Jun 2022 10:29:40 +0200 Subject: ... --- overlays/uhk-agent.nix | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 overlays/uhk-agent.nix (limited to 'overlays') diff --git a/overlays/uhk-agent.nix b/overlays/uhk-agent.nix deleted file mode 100644 index 4c0b7d5f..00000000 --- a/overlays/uhk-agent.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ prev, sources, ... }: -{ - uhk-agent = - let - image = prev.stdenv.mkDerivation (sources.uhk-agent // { - buildCommand = '' - install -m 0644 $src $out - ''; - }); - - appimage-run' = prev.appimage-run.override { - extraPkgs = p: with p; [ - at-spi2-core - ]; - }; - - runScript = prev.writeShellScript "run-uhk-agent" '' - exec -- ${appimage-run'}/bin/appimage-run ${image} - ''; - - udevRules = prev.writeText "uhk60.rules" '' - # Ultimate Hacking Keyboard rules - # These are the udev rules for accessing the USB interfaces of the UHK as non-root users. - # Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards. - SUBSYSTEM=="input", GROUP="input", MODE="0664" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0664", GROUP="plugdev" - KERNEL=="hidraw*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0664", GROUP="plugdev" - ''; - in prev.runCommand "uhk-agent" {} '' - mkdir -p $out/bin $out/etc/udev/rules.d - install -m 0755 ${runScript} $out/bin/uhk-agent - install -m 0644 ${udevRules} $out/etc/udev/rules.d/50-uhk60.rules - ''; -} -- cgit v1.2.3