error: 'nixinate' is not a valid system type #12
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tristan/nixinate#12
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When running
nix flake check
, it complains about nixinate not being a valid system typeThe
apps
attribute of the flake schema wants to disallow a nested attributes likeapps.myName.myNestedApp.x86_64-linux
, but I believe this should be changed. So this issue may remain until the flake schema changes, or 3.0 is released which settles any debate on it.I feel like breaking
nix flake check
is too big of a price to pay. It seems that the only thing you want nested apps for is so you can gonixinate.foo
. For now, why not just make itnixinate-foo
ornixinate_foo
so we can use it with nix flake check? Or at least make an alternative function that can be used for those of us that neednix flake check
.@ursi it's important to remember that flakes aren't stable, and that we shouldn't program with the expectation of any stability until they are. So with that in mind, it's entirely still possible to make Flakes work more like we would like them to, and to argue the point upstream.
I think that for the meantime we should go with what @ursi proposed, making the apps flat and prefixing them with
nixinate-
.What I have done as a workaround for now is
apps.x86_64-linux = (nixinate stuff).nixinate
. If I wanted thenixinate
prefix on the app names I could uselib.mapAttrs'
, but for my current project, that's not necessary.(oops, duplicated) https://github.com/MatthewCroughan/nixinate/issues/31
I agree with the proposed renaming, therefore i reopened and will tackle this.