Repository navigation
fix: unfree provider for non-module-system user classes - #495
Merged
Merged
Conversation
…r classes When a user has classes = ["user"] (no homeManager), the unfree provider resolved with class = "user" which isn't in validClasses, silently dropping the unfree.packages emission. Extend the hostModule condition to also emit to the host's OS class for any non-module-system class, not just homeManager.
sini
force-pushed
the
fix/unfree-user-class
branch
from
May 9, 2026 14:41
cf1d495 to
8449a06
Compare
theutz
approved these changes
May 9, 2026
Collaborator
|
The insecure battery most probably suffer from the same issue ? |
Collaborator
Author
Yes, I was going to do a full audit after breakfast. |
2 tasks done
drupol
pushed a commit
that referenced
this pull request
May 9, 2026
## Summary - Same bug as #495 (unfree): when a user has `classes = ["user"]` (no homeManager), `den.provides.insecure` resolved with `class = "user"` — not in `validClasses` — silently dropping the `permittedInsecurePackages` emission - Fix: add `host` arg and emit to the host's OS class for any non-module-system class, matching the unfree provider fix - Audited all other providers in `modules/aspects/provides/` — none are affected ## Test plan - [x] Existing `insecure` test suite passes - [x] Verified: user aspect with `classes = ["user"]` now correctly populates `igloo.permittedInsecurePackages.packages`
charlesfire
pushed a commit
to charlesfire/den
that referenced
this pull request
May 16, 2026
## Summary - When a user has `classes = ["user"]` (no homeManager), `den.provides.unfree` resolved with `class = "user"` — not in `validClasses` — silently dropping the `unfree.packages` emission entirely - Fix: extend the `hostModule` condition to emit to the host's OS class for any non-module-system class, not just `homeManager` - All existing unfree tests pass; verified with a reproduction case matching the reported config ## Test plan - [x] Existing `unfree` test suite passes (test-packages-set-on-nixos, test-packages-set-on-home-manager, test-user-class-works) - [x] Reproduced: user aspect chain (user → development → ollama → unfree) with `classes = ["user"]` now correctly populates `igloo.unfree.packages` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charlesfire
pushed a commit
to charlesfire/den
that referenced
this pull request
May 16, 2026
## Summary - Same bug as denful#495 (unfree): when a user has `classes = ["user"]` (no homeManager), `den.provides.insecure` resolved with `class = "user"` — not in `validClasses` — silently dropping the `permittedInsecurePackages` emission - Fix: add `host` arg and emit to the host's OS class for any non-module-system class, matching the unfree provider fix - Audited all other providers in `modules/aspects/provides/` — none are affected ## Test plan - [x] Existing `insecure` test suite passes - [x] Verified: user aspect with `classes = ["user"]` now correctly populates `igloo.permittedInsecurePackages.packages`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
classes = ["user"](no homeManager),den.provides.unfreeresolved withclass = "user"— not invalidClasses— silently dropping theunfree.packagesemission entirelyhostModulecondition to emit to the host's OS class for any non-module-system class, not justhomeManagerTest plan
unfreetest suite passes (test-packages-set-on-nixos, test-packages-set-on-home-manager, test-user-class-works)classes = ["user"]now correctly populatesigloo.unfree.packages🤖 Generated with Claude Code