15 lines
290 B
Nix
15 lines
290 B
Nix
|
{ pkgs, ... }:
|
||
|
{
|
||
|
services.udev = let
|
||
|
pdpRules = pkgs.writeTextFile {
|
||
|
name = "10-pdp.rules";
|
||
|
text = ''SUBSYSTEM=="usb", ATTR{idVendor}=="2833", MODE="0666"'';
|
||
|
destination = "/etc/udev/rules.d/10-pdp.rules";
|
||
|
};
|
||
|
in {
|
||
|
packages = [
|
||
|
pdpRules
|
||
|
];
|
||
|
};
|
||
|
}
|