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.
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 formerself.*, 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.