diff --git a/modules/default.nix b/modules/default.nix index c447064..a970368 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -26,6 +26,7 @@ let ./shell-config ./sound ./ssh + ./xr ]; mappedAspects = map (x: { name = baseNameOf x; value = import x; }) aspects; in rec { @@ -50,6 +51,7 @@ in rec { nix-config shell-config sound + xr ] ++ base ++ client-networking; laptop = desktop ++ [ laptop-config ]; diff --git a/modules/xr/default.nix b/modules/xr/default.nix new file mode 100644 index 0000000..d486f47 --- /dev/null +++ b/modules/xr/default.nix @@ -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 ]; +}