Skip to content

From a submodule, expose only certain options as flake outputs #187

Answered by roberth
DrRuhe asked this question in Q&A
Discussion options

You must be logged in to vote

I think you'd have to write the logic yourself, in order to expose only the .public value.
Maybe something like this?

flake.deployments =
  mapAttrs
    (system: v: mapAttrs (name: deployment: deployment.public) v.deployments)
    config.allSystems

Are you sure you want to have deployments for each of the systems? I would expect a flake attribute like deployments to pick a specific system type for me, similar to what we have with nixosConfigurations.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@roberth
Comment options

@DrRuhe
Comment options

@roberth
Comment options

@DrRuhe
Comment options

Answer selected by DrRuhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants