commit | 1fcb0b2a7a8d45e22e5e2e5ad82fb83580bc53b3 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Sun Mar 19 19:46:17 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Sun Mar 19 19:46:17 2023 +0000 |
tree | 34a6c38a1427cee21b59a900c2e408b9603cff76 | |
parent | ef05aa82228e67bcf06d28b7ef95149b6ee5392f [diff] [blame] |
Add platformio udev rules
diff --git a/modules/udev.nix b/modules/udev.nix new file mode 100644 index 0000000..b40a95b --- /dev/null +++ b/modules/udev.nix
@@ -0,0 +1,13 @@ +{ pkgs, ... }: { + config.services.udev.packages = [ (pkgs.stdenv.mkDerivation { + pname = "udev-rules"; + version = "2023-03-18"; + + src = ./udev/rules; + + installPhase = '' + mkdir -p $out/etc/udev/rules.d/ + cp $src/* $out/etc/udev/rules.d/ + ''; + }) ]; +}