forked from DGNum/liminix
7e13eda490
most of the text is recycled and follows no particular format
18 lines
373 B
Nix
18 lines
373 B
Nix
with import <nixpkgs> {} ;
|
|
|
|
let
|
|
devices =
|
|
builtins.readDir ../devices;
|
|
texts = lib.mapAttrsToList (n: t:
|
|
let d = import ../devices/${n}/default.nix;
|
|
d' = { description = "no description for ${n}"; } // d;
|
|
in d'.description )
|
|
devices;
|
|
in
|
|
writeText "hwdoc" ''
|
|
Supported hardware
|
|
##################
|
|
|
|
${lib.concatStringsSep "\n\n" texts}
|
|
|
|
''
|