modules/xr: init

This commit is contained in:
Max Headroom 2023-12-07 20:26:12 +01:00
parent 5844fc0b4e
commit eed03c58cf
2 changed files with 14 additions and 0 deletions

View file

@ -26,6 +26,7 @@ let
./shell-config ./shell-config
./sound ./sound
./ssh ./ssh
./xr
]; ];
mappedAspects = map (x: { name = baseNameOf x; value = import x; }) aspects; mappedAspects = map (x: { name = baseNameOf x; value = import x; }) aspects;
in rec { in rec {
@ -50,6 +51,7 @@ in rec {
nix-config nix-config
shell-config shell-config
sound sound
xr
] ++ base ++ client-networking; ] ++ base ++ client-networking;
laptop = desktop ++ [ laptop-config ]; laptop = desktop ++ [ laptop-config ];

12
modules/xr/default.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
let
rules = pkgs.writeTextDir "etc/udev/rules.d/70-xr.rules" ''
# Xreal Air 2 Pro
ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0432", TAG+="uaccess"
'';
in
{
services.udev.packages = [ rules ];
}