From eed03c58cf5b669b89135d2075acb20e8e5fed74 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 7 Dec 2023 20:26:12 +0100 Subject: [PATCH] modules/xr: init --- modules/default.nix | 2 ++ modules/xr/default.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/xr/default.nix 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 ]; +}