-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schemas doesn't work at all? #32
Comments
Flake schemas have not yet been merged into Nix: NixOS/nix#8892. For now, in order to experiment with flake schemas, you can build Nix from the relevant branch or run it directly like this: nix run github:DeterminateSystems/nix-src/flake-schemas -- \
flake show github:DeterminateSystems/flake-schemas The output:
As JSON: {
"lib": {
"unknown": true
},
"schemas": {
"doc": "The `schemas` flake output is used to define and document flake outputs.\nFor the expected format, consult the Nix manual.\n",
"output": {
"children": {
"apps": {
"leaf": true,
"shortDescription": "A schema checker for the `apps` flake output",
"what": "flake schema"
},
"checks": {
"leaf": true,
"shortDescription": "A schema checker for the `checks` flake output",
"what": "flake schema"
},
"darwinConfigurations": {
"leaf": true,
"shortDescription": "A schema checker for the `darwinConfigurations` flake output",
"what": "flake schema"
},
"darwinModules": {
"leaf": true,
"shortDescription": "A schema checker for the `darwinModules` flake output",
"what": "flake schema"
},
"devShells": {
"leaf": true,
"shortDescription": "A schema checker for the `devShells` flake output",
"what": "flake schema"
},
"dockerImages": {
"leaf": true,
"shortDescription": "A schema checker for the `dockerImages` flake output",
"what": "flake schema"
},
"formatter": {
"leaf": true,
"shortDescription": "A schema checker for the `formatter` flake output",
"what": "flake schema"
},
"homeConfigurations": {
"leaf": true,
"shortDescription": "A schema checker for the `homeConfigurations` flake output",
"what": "flake schema"
},
"homeModules": {
"leaf": true,
"shortDescription": "A schema checker for the `homeModules` flake output",
"what": "flake schema"
},
"hydraJobs": {
"leaf": true,
"shortDescription": "A schema checker for the `hydraJobs` flake output",
"what": "flake schema"
},
"legacyPackages": {
"leaf": true,
"shortDescription": "A schema checker for the `legacyPackages` flake output",
"what": "flake schema"
},
"nixosConfigurations": {
"leaf": true,
"shortDescription": "A schema checker for the `nixosConfigurations` flake output",
"what": "flake schema"
},
"nixosModules": {
"leaf": true,
"shortDescription": "A schema checker for the `nixosModules` flake output",
"what": "flake schema"
},
"overlays": {
"leaf": true,
"shortDescription": "A schema checker for the `overlays` flake output",
"what": "flake schema"
},
"packages": {
"leaf": true,
"shortDescription": "A schema checker for the `packages` flake output",
"what": "flake schema"
},
"schemas": {
"leaf": true,
"shortDescription": "A schema checker for the `schemas` flake output",
"what": "flake schema"
},
"templates": {
"leaf": true,
"shortDescription": "A schema checker for the `templates` flake output",
"what": "flake schema"
}
}
}
}
} I'll update the README to make the status of schemas more clear. |
@Lillecarl I'm going to close this issue, as we've now made this more clear in the README. But we're glad that you're eager to experiment with this. Stay tuned for updates on this hopefully soon. |
Hey @lucperkins, thanks for the response and clarification. I would much rather try this feature out through DetNix than through a branch that hasn't been updated since July 😉 UX wise it's a pretty big improvement over going into the REPL and probing whatever outputs a flake happens to expose 😄 |
When running
nix flake show
on this repo it doesn't show the schema for "output type" schemas, also my homeConfigurations outputs on my personal repo shows unknown with and withoutschemas.homeConfigurations
output added. Am I holding it wrong? As you can see from nix config I've installed Nix with the DetSys installer.nix config
The text was updated successfully, but these errors were encountered: