Skip to content

fix: unfree provider for non-module-system user classes - #495

Merged
sini merged 1 commit into
denful:mainfrom
sini:fix/unfree-user-class
May 9, 2026
Merged

sini merged 1 commit into
denful:mainfrom
sini:fix/unfree-user-class

Conversation

@sini

@sini sini commented May 9, 2026

Copy link
Copy Markdown
Collaborator

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

  • Existing unfree test suite passes (test-packages-set-on-nixos, test-packages-set-on-home-manager, test-user-class-works)
  • Reproduced: user aspect chain (user → development → ollama → unfree) with classes = ["user"] now correctly populates igloo.unfree.packages

🤖 Generated with Claude Code

…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
sini force-pushed the fix/unfree-user-class branch from cf1d495 to 8449a06 Compare May 9, 2026 14:41
@sini
sini merged commit cea4092 into denful:main May 9, 2026
17 of 19 checks passed
@drupol

drupol commented May 9, 2026

Copy link
Copy Markdown
Collaborator

The insecure battery most probably suffer from the same issue ?

@sini

sini commented May 9, 2026

Copy link
Copy Markdown
Collaborator Author

The insecure battery most probably suffer from the same issue ?

Yes, I was going to do a full audit after breakfast.

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`
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.

3 participants