hardware.nix (1209B)
1 with import <nixpkgs> {} ; 2 3 let 4 inherit (builtins) stringLength readDir filter; 5 devices = filter (n: n != "families") 6 (lib.mapAttrsToList (n: t: n) (readDir ../devices)); 7 texts = map (n: 8 let d = import ../devices/${n}/default.nix; 9 d' = { 10 description = "${n}\n${substring 0 (stringLength n) "********************************"}\n"; 11 } // d; 12 installer = 13 if d ? description && d ? installer 14 then '' 15 16 The default installation route for this device is 17 :ref:`system-outputs-${d.installer}` 18 '' 19 else ""; 20 in d'.description) 21 devices; 22 in 23 writeText "hwdoc" '' 24 Supported hardware 25 ################## 26 27 For development, the `GL.iNet GL-MT300A <https://www.gl-inet.com/products/gl-mt300a/>`_ 28 is an attractive choice as it has a builtin "debrick" procedure in the 29 boot monitor and is also comparatively simple to 30 attach serial cables to (soldering not required), so it 31 is lower-risk than some devices. 32 33 For a more powerful device, something with an ath10k would be the safe bet, 34 or the Linksys E8450 which seems popular in the openwrt community. 35 36 ${lib.concatStringsSep "\n\n" texts} 37 38 ''