refactor(hosts): derive shared policy from host facts #162
No reviewers
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:electra
host:fleet
host:lyra
host:nova
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!162
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-17-host-facts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
nixosConfig.host.gpu.vendorsmetadata and show it injust inventoryllmfitonly on hosts declaring a local GPUnixosConfig.host.roleDecision
Refs #17. This deliberately does not introduce
nixosConfig.hostClass: the existinghost.roleis the durable shared classification required by Home Manager, whilegpu.vendorsmodels a separate hardware capability. The result remains explicit and avoids hidden profile selection.Validation
nix fmtnix flake checkjust inventoryllmfitpolicy: enabled only for Electra and LyraDeployment evidence still required
Canary a role-bearing host and confirm its Home Manager activation still applies the expected headless/desktop policy. Do not close #17 until that evidence is recorded.
Automated-review status:
ai-review.ymlran but failed before posting any findings because its Ollama response parser received malformed JSON (Expecting ":" delimiter). The normal PR workflow completed successfully. This is reviewer infrastructure failure, not feedback against the change; the branch remains validated withnix flake check,just inventory, and the targetedllmfitpolicy evaluation. A Forgejo API rerun is not available, so no unrelated branch change has been made.Automated code review
Reviewed commit:
614937a16ec270ae95cae74008952c48f98f8980Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
Refactors host policy by introducing explicit
gpu.vendorsmetadata, derives Home Manager'sisServerflag fromnixosConfig.host.role, moves conditionalllmfitinstallation to a shared module, updates inventory tooling and documentation accordingly. Changes are scoped correctly and align with stated goals.Blocking findings
None.
Important findings
None.
Suggestions
None.
Tests and validation
Questions
None.
Review limitations
nix flake checkoutput, and live deployment behavior were not executed.Diff coverage
README.md: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/chaos/default.nix: reviewed — included in a context-limited batchhosts/cosmos/default.nix: reviewed — included in a context-limited batchhosts/electra/default.nix: reviewed — included in a context-limited batchhosts/lyra/default.nix: reviewed — included in a context-limited batchjustfiles/hosts.just: reviewed — included in a context-limited batchmodules/common/default-config.nix: reviewed — included in a context-limited batchmodules/common/system.nix: reviewed — included in a context-limited batchReview metadata