Skip to content

om show: are nixosConfigurations supported? #231

Answered by shivaraj-bh
dezren39 asked this question in Q&A
Discussion options

You must be logged in to vote

The schema used with nix flake show tries to force evaluate the config.system.build.toplevel to fetch the name and description of the derivation (See https://github.com/DeterminateSystems/flake-schemas/blob/0a5c42297d870156d9c57d8f99e476b738dcd982/flake.nix#L254).

While evaluating this derivation, it fails because of using relative path in your flake input. NixOS/nix#3978 (comment) might answer why this isn’t possible yet.

For now, either the flake input shouldn’t be a relative path or you could configure a custom schema that doesn’t evaluate config.system.build.toplevel for nixosConfigurations. The latter is still not very straightforward; this is actually a good idea for a future versio…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@srid
Comment options

@shivaraj-bh
Comment options

@dezren39
Comment options

@shivaraj-bh
Comment options

Answer selected by dezren39
@srid
Comment options

@dezren39
Comment options

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