From 9ec123f0f262744890d339c5b0221d229021545f Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Fri, 12 Apr 2024 07:08:56 -0600 Subject: [PATCH] betaflight udev rules --- nate/modules/sway/sway_conf.nix | 7 ++++++- nate/modules/user/main_user.nix | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nate/modules/sway/sway_conf.nix b/nate/modules/sway/sway_conf.nix index d638ff1..32787ce 100644 --- a/nate/modules/sway/sway_conf.nix +++ b/nate/modules/sway/sway_conf.nix @@ -122,7 +122,12 @@ services.openssh.enable = true; services.dbus.enable = true; services.syncthing.enable = true; - + # For betaflight configurator + services.udev.extraRules = '' + # DFU (Internal bootloader for STM32 and AT32 MCUs) + SUBSYSTEM=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", MODE="0664", GROUP="dialout" + SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="dialout" + ''; # Audio security.rtkit.enable = true; services.pipewire = { diff --git a/nate/modules/user/main_user.nix b/nate/modules/user/main_user.nix index a2489b7..7765e09 100644 --- a/nate/modules/user/main_user.nix +++ b/nate/modules/user/main_user.nix @@ -46,6 +46,8 @@ in "audio" # For android "adbusers" + # For serial interfaces + "dialout" ]; }) ];