nixos-config/modules/base/solo2/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

31 lines
693 B
Nix

{ lib, mkDerivation, ... }:
let
pname = "solo2-udev-rules";
version = "20220924";
in
mkDerivation {
inherit pname version;
src = ./.;
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/lib/udev/rules.d
echo 'SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="b000", TAG+="uaccess"' >> $out/lib/udev/rules.d/70-solo2.rules
'';
meta = with lib; {
description = "udev rules for the solo2 key";
homepage = "https://solokeys.com";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [
{
email = "erwin@datarift.nl";
github = "eboskma";
name = "Erwin Boskma";
}
];
};
}