liminix/pkgs/kernel/write-kconfig.nix

12 lines
240 B
Nix
Raw Permalink Normal View History

2023-06-26 21:49:43 +02:00
{
lib
, writeText
}:
name : config: writeText name
(builtins.concatStringsSep
"\n"
(lib.mapAttrsToList
(name: value: (if value == "n" then "# CONFIG_${name} is not set" else "CONFIG_${name}=${value}"))
config
))