Skip to content
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

Don't hardcode flake schema types #262

Closed
Tracked by #260
shivaraj-bh opened this issue Sep 6, 2024 · 0 comments · Fixed by #235
Closed
Tracked by #260

Don't hardcode flake schema types #262

shivaraj-bh opened this issue Sep 6, 2024 · 0 comments · Fixed by #235
Assignees

Comments

@shivaraj-bh
Copy link
Member

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct FlakeSchema {
pub system: System,
pub packages: BTreeMap<String, Leaf>,
pub legacy_packages: BTreeMap<String, Leaf>,
pub devshells: BTreeMap<String, Leaf>,
pub checks: BTreeMap<String, Leaf>,
pub apps: BTreeMap<String, Leaf>,
pub formatter: Option<Leaf>,
pub nixos_configurations: BTreeMap<String, Leaf>,
pub darwin_configurations: BTreeMap<String, Leaf>,
pub home_configurations: BTreeMap<String, Leaf>,
pub nixos_modules: BTreeMap<String, Leaf>,
pub docker_images: BTreeMap<String, Leaf>,
pub overlays: BTreeMap<String, Leaf>,
pub templates: BTreeMap<String, Leaf>,
pub schemas: BTreeMap<String, Leaf>,
/// Other unrecognized keys.
pub other: Option<BTreeMap<String, FlakeOutputs>>,
}

To avoid maintaining these types in rust

@shivaraj-bh shivaraj-bh self-assigned this Sep 6, 2024
@srid srid changed the title Generic schemas Don't hardcode flake schema types Sep 6, 2024
@srid srid mentioned this issue Sep 19, 2024
3 tasks
@srid srid closed this as completed in #235 Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant