system: replace host detection with capabilities module #4

Merged
torjus merged 1 commits from refactor/host-capabilities into master 2026-01-31 09:24:22 +00:00
Owner

Replace scattered osConfig.system.name comparisons with a declarative
host.capabilities module. This improves maintainability and semantic
clarity by expressing what capabilities a host has rather than checking
its name.

Changes:

  • Add system/host-capabilities.nix with options for hardware, form factor,
    UI behavior, services, and backup configuration
  • Configure capabilities in hosts/gunter and hosts/magicman
  • Migrate 6 files to use capabilities: packages, waybar, ssh, backup-home
  • Remove redundant host name check for pciutils in gunter config
  • Make backup-home service conditionally enabled based on capabilities

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Replace scattered osConfig.system.name comparisons with a declarative host.capabilities module. This improves maintainability and semantic clarity by expressing what capabilities a host has rather than checking its name. Changes: - Add system/host-capabilities.nix with options for hardware, form factor, UI behavior, services, and backup configuration - Configure capabilities in hosts/gunter and hosts/magicman - Migrate 6 files to use capabilities: packages, waybar, ssh, backup-home - Remove redundant host name check for pciutils in gunter config - Make backup-home service conditionally enabled based on capabilities Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
torjus added 1 commit 2026-01-31 09:24:14 +00:00
system: replace host detection with capabilities module
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m1s
Run nix flake check / flake-check (pull_request) Successful in 2m7s
b8e04eb338
Replace scattered osConfig.system.name comparisons with a declarative
host.capabilities module. This improves maintainability and semantic
clarity by expressing what capabilities a host has rather than checking
its name.

Changes:
- Add system/host-capabilities.nix with options for hardware, form factor,
  UI behavior, services, and backup configuration
- Configure capabilities in hosts/gunter and hosts/magicman
- Migrate 6 files to use capabilities: packages, waybar, ssh, backup-home
- Remove redundant host name check for pciutils in gunter config
- Make backup-home service conditionally enabled based on capabilities

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
torjus merged commit d1af32ed5e into master 2026-01-31 09:24:22 +00:00
torjus deleted branch refactor/host-capabilities 2026-01-31 09:24:23 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: torjus/nixos#4