liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

write-kconfig.nix (238B)


      1 {
      2   lib,
      3   writeText,
      4 }:
      5 name: config:
      6 writeText name (
      7   builtins.concatStringsSep "\n" (
      8     lib.mapAttrsToList (
      9       name: value: (if value == "n" then "# CONFIG_${name} is not set" else "CONFIG_${name}=${value}")
     10     ) config
     11   )
     12 )