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

Set key for modules and nixosModules #251

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Sep 12, 2024

@roberth
Copy link
Member

roberth commented Sep 13, 2024

I'm slightly concerned about overridden inputs not being represented in the key, but this may be the lesser evil of the two.

Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to implement it anyway.

modules/nixosModules.nix Show resolved Hide resolved
Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming to think of it, since we have this logic in two places now, it should be factored out, and since we're enabling new behavior, we should test it.

Specifically, eval-tests.nix should check that deduplication works (e.g. with a list-typed option that merges by appending, as usual), and that disabledModules works.

I won't have time for it in the coming days, so feel free to give it a shot.

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 this pull request may close these issues.

Multiple imports of the same NixOS module not allowed with flake
2 participants