Skip to content

Dedicated modules for generating files with Nix-representable data formats #5

Open
@foo-dogsquared

Description

It would be nice to have dedicated modules for them as it would be easier to integrate them into a package

  • JSON
  • YAML
  • TOML
  • GLib (mainly for dconf)

Other considerations include systemd units and XML. Its possible namespace would be dataFiles as it would most likely implemented on top of files anyways. It would be implemented with the following sample tentative configuration.

{
  dataFiles.<name> = {
    variant = "json";
    content = <some JSON type crap>;
  };

  dataFiles.<name2> = {
     variant = "dconf";
     content = <some dconf values>;
  };
}

In this way, it could be implemented with extensible modules and allow third-party module authors to easily extend it with their own.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions