Skip to content

Handle raw config for devshell & nixago #294

@blaggacao

Description

@blaggacao

Instead of mixing config intent and rendering / re-ification like this:

{
  bench = dev.mkShell {
    name = lib.mkDefault "Bench Shell";
    nixago = [
      (dev.mkNixago cell.config.procfile)
      (dev.mkNixago cell.config.redis_socketio)
      (dev.mkNixago cell.config.redis_queue)
      (dev.mkNixago cell.config.redis_cache)
    ];
  };
}

Keep only the intent (config), like so:

{
  bench = {
    name = lib.mkDefault "Bench Shell";
    nixago = [
      cell.config.procfile
      cell.config.redis_socketio
      cell.config.redis_queue
      cell.config.redis_cache
    ];
  };
}

The re-ification can be provided via block type actions.

This increases ease of composition for these configuration targets.

Caveat: harvesting from config won't be possible anymore. For harvesting, users would have to re-ify themselves in a separate block type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    👀 Status: Review NeededThis issue is pending a review💪 Effort: 3This issue is of medium complexity or only partly well understood

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions