toDconfINI
lib.generators.toDconfINI
Docs pulled from | This Revision | 9 days ago
Nixpkgs manual
Generates INI in dconf keyfile style. See the GNOME documentation for details.
Noogle detected
Implementation
The following is the current implementation of this function.
attrsOfAttrs:
let
# map function to string for each key val
mapAttrsToStringsSep =
sep: mapFn: attrs:
concatStringsSep sep (mapAttrsToList mapFn attrs);
mkSection =
sectName: sectValues:
''
[${mkSectionName sectName}]
''
+ toKeyValue { inherit mkKeyValue listsAsDuplicateKeys; } sectValues;
in
# map input to ini sections
mapAttrsToStringsSep "\n" mkSection attrsOfAttrs