{ pkgs, ... }: { services.udev = let oculusRules = pkgs.writeTextFile { name = "10-oculus.rules"; text = ''KERNEL=="hidraw*", ATTRS{idVendor}=="0e6f", ATTRS{idProduct}=="0184", MODE="0660", TAG+="uaccess"''; destination = "/etc/udev/rules.d/10-oculus.rules"; }; in { packages = [ oculusRules ]; }; }