+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
438751b
main
1{ config , lib , pkgs , ...} : 2let 3opts = { 4enable = lib . mkEnableOption '' 5Firefox webusb support extension 6'' ; 7}; 8cfg = config . programs . awawausb ; 9in 10{ 11options . programs . awawausb = opts ; 12config = lib . mkIf cfg . enable { 13home = { 14# TODO: might need udev rules to do anything useful with this? in which case move 15# to a nixos module and use the /etc native extension path 16packages = [ pkgs . awawausb ]; 17 18file . ".mozilla/native-messaging-hosts/awawausb_native_stub.json" . text = builtins . toJSON { 19name = "awawausb_native_stub" ; 20description = "Allows WebUSB extension to access USB devices" ; 21path = " ${ lib . getExe pkgs . awawausb } " ; 22type = "stdio" ; 23allowed_extensions = [ "awawausb@arcanenibble.com" ]; 24}; 25}; 26}; 27}