Skip to content

feat(core): support functionArgs in IntoPath#342

Merged
vic merged 4 commits intovic:mainfrom
Damnjelly:main
Mar 29, 2026
Merged

feat(core): support functionArgs in IntoPath#342
vic merged 4 commits intovic:mainfrom
Damnjelly:main

Conversation

@Damnjelly
Copy link
Copy Markdown
Contributor

@Damnjelly Damnjelly commented Mar 28, 2026

Adds support for functionArgs inside the IntoPath arg of den.provides.forward.
Includes tests for both home manager and nixos (might be a bit overkill?).
Also fixes a typo in the documentation permanance -> permanence

usage example:

  sysPersist =
    { host }:
    {
      class,
      aspect-chain,
    }:
    den._.forward {
      each = lib.singleton class;
      fromClass = _: "sysPersist";
      intoClass = _: host.class;
      intoPath =
        _:
        { config, ... }:
        [
          "environment"
          "persistence"
          config.impermanence.persistence-dir
        ];
      fromAspect = _: lib.head aspect-chain;
      guard = { options, ... }: options ? environment.persistence;
    };

vic
vic previously requested changes Mar 28, 2026
@vic vic dismissed their stale review March 29, 2026 04:13

fixed this

@vic vic added the approved allow all CI integration tests label Mar 29, 2026
@vic vic merged commit 8b0bfb3 into vic:main Mar 29, 2026
22 checks passed
@vic
Copy link
Copy Markdown
Owner

vic commented Mar 29, 2026

Thanks @Damnjelly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants