liminix

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

write-kconfig.nix (240B)


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