Skip to content

Missing flake-parts-lib, inputs & self in "Module Arguments" #2078

Description

@Zocker1999NET

While trying to learn how to migrate my own flakes to flake-parts, the documentation seemed to not answer the following question properly: how to access my own flake’s outputs, which are not system-specific? (or: do I really have to use config.flake.* instead of the former self.*, e.g. self.nixosModules?)

One answer seems to be that the Module Arguments page does not list the specialArgs flake-parts-lib, inputs & self.

To find that out, I had to look in the code: https://github.com/hercules-ci/flake-parts/blob/3107b77cd68437b9a76194f0f7f9c55f2329ca5b/lib.nix#L138-L141

I think explaining them would improve the docs.

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