om show
: are nixosConfigurations supported?
#231
-
|
Beta Was this translation helpful? Give feedback.
Answered by
shivaraj-bh
Aug 27, 2024
Replies: 1 comment 7 replies
-
Yes, they are supported. What is the host machine you are running |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The schema used with
nix flake show
tries to force evaluate theconfig.system.build.toplevel
to fetch thename
anddescription
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
fornixosConfigurations
. The latter is still not very straightforward; this is actually a good idea for a future versio…