Skip to content

FR: Make bifurcated polynomial applicative mapping opt-in #267

@vic

Description

@vic

How do I make a generic aspect be included only once:

foo = { class, aspect-chain }: { nixos.bar = ...; }

if I include it at den.default or den.ctx.host then nixos.bar is duplicated because the aspect is included once for the host and once when called for each user,
this does not happen for static aspects like { nixos.bar = ...; } I believe, because of how ctx-apply.nix keep track of statics, I believe foo can also be detected to not be included more than once.

maybe ctx-apply could keep track of the aspect name (or definition loc?) and its params as a way to deduplicate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions