2023-09-28 13:17:30 +02:00
|
|
|
with import <nixpkgs> {} ;
|
|
|
|
|
|
|
|
let
|
|
|
|
devices =
|
|
|
|
builtins.readDir ../devices;
|
|
|
|
texts = lib.mapAttrsToList (n: t:
|
|
|
|
let d = import ../devices/${n}/default.nix;
|
2023-11-10 00:02:35 +01:00
|
|
|
d' = {
|
|
|
|
description = "no description for ${n}";
|
|
|
|
} // d;
|
|
|
|
installer =
|
|
|
|
if d ? installer
|
|
|
|
then ''
|
|
|
|
|
|
|
|
The default installation route for this device is
|
|
|
|
:ref:`system-outputs-${d.installer}`
|
|
|
|
''
|
|
|
|
else "";
|
|
|
|
in (d'.description + installer))
|
2023-09-28 13:17:30 +02:00
|
|
|
devices;
|
|
|
|
in
|
|
|
|
writeText "hwdoc" ''
|
|
|
|
Supported hardware
|
|
|
|
##################
|
|
|
|
|
|
|
|
${lib.concatStringsSep "\n\n" texts}
|
|
|
|
|
|
|
|
''
|