Add host class defaults only where they simplify shared modules #17

Open
opened 2026-07-01 16:16:02 +01:00 by nimmo · 0 comments
Owner

Goal

Implement Priority 4 from projects/host-facts-refactor-roadmap.md: add host class facts only where they genuinely reduce duplication.

Acceptance Checklist

  • Decide whether nixosConfig.hostClass is worth introducing.
  • If added, support values like laptop, desktop, server, and vm.
  • Avoid replacing clear profile imports with hidden conditionals.
  • Use the fact only when multiple modules need the same durable host classification.

Proposed Shape

nixosConfig.hostClass = "laptop";

Notes

This is lower priority than the auto-update, backup, and network-exposure refactors. Keep the design conservative and easy to inspect.

## Goal Implement Priority 4 from `projects/host-facts-refactor-roadmap.md`: add host class facts only where they genuinely reduce duplication. ## Acceptance Checklist - Decide whether `nixosConfig.hostClass` is worth introducing. - If added, support values like `laptop`, `desktop`, `server`, and `vm`. - Avoid replacing clear profile imports with hidden conditionals. - Use the fact only when multiple modules need the same durable host classification. ## Proposed Shape ```nix nixosConfig.hostClass = "laptop"; ``` ## Notes This is lower priority than the auto-update, backup, and network-exposure refactors. Keep the design conservative and easy to inspect.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#17
No description provided.