1
0
Fork 0

[nix] Add udev rules to trigger the thinkpad docking events

main
Sebastian Schulze 2021-10-01 11:03:09 +02:00
parent c9677880ac
commit 4aba849964
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,11 @@
driSupport = true;
};
services.udev.extraRules = ''
ACTION=="remove", ATTRS{idVendor}=="3297", ATTRS{idProduct}=="4975", RUN+="${pkgs.su}/bin/su bascht --shell ${pkgs.bash}/bin/bash /home/bascht/bin/thinkpad-dock", OWNER="bascht"
ACTION=="add", ATTRS{idVendor}=="3297", ATTRS{idProduct}=="4975", RUN+="${pkgs.su}/bin/su bascht --shell ${pkgs.bash}/bin/bash /home/bascht/bin/thinkpad-dock", OWNER="bascht"
'';
nixpkgs.config.joypixels.acceptLicense = true;
fonts = {