forked from DGNum/liminix
12 lines
240 B
Nix
12 lines
240 B
Nix
|
{
|
||
|
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
|
||
|
))
|