2
0
Files
liminix/doc/hardware.nix
T
2025-11-11 21:49:45 +00:00

24 lines
440 B
Nix

with import <nixpkgs> { };
let
inherit (builtins) readDir filter;
devices = filter (n: n != "families") (lib.mapAttrsToList (n: t: n) (readDir ../devices));
texts = map (
n:
let
d = import ../devices/${n}/default.nix;
d' = {
description = ''
== ${n}
'';
}
// d;
in
"\n${d'.description}"
) devices;
in
writeText "hwdoc" ''
${lib.concatStringsSep "\n\n" texts}
''