homelab-host-module #27

Merged
torjus merged 3 commits from homelab-host-module into master 2026-02-07 01:56:38 +00:00
Owner

Summary

Add a shared homelab.host module that provides host metadata for multiple consumers:

  • tier: Deployment tier (test/prod) for future homelab-deploy service
  • priority: Alerting priority (high/low) for Prometheus label filtering
  • role: Primary role of the host (dns, database, monitoring, etc.)
  • labels: Free-form labels for additional metadata (e.g., dns_role = "primary")

This is a prerequisite for both docs/plans/nats-deploy-service.md and docs/plans/prometheus-scrape-target-labels.md.

Host configurations

Host tier priority role labels
ns1 prod high dns dns_role=primary
ns2 prod high dns dns_role=secondary
nix-cache01 prod low build-host
vault01 prod high vault
jump prod high bastion
template test low -
template2 test low -
testvm01 test low -
vaulttest01 test low vault

Hosts not listed use defaults (tier=prod, priority=high, no role/labels).

Other changes

  • Module moved to commonModules in flake.nix (available to all hosts including template2)
  • create-host template updated to start new hosts in test tier
  • Plan documents updated with implementation status
  • Added result-* to .gitignore for parallel nix builds
## Summary Add a shared `homelab.host` module that provides host metadata for multiple consumers: - **tier**: Deployment tier (`test`/`prod`) for future homelab-deploy service - **priority**: Alerting priority (`high`/`low`) for Prometheus label filtering - **role**: Primary role of the host (dns, database, monitoring, etc.) - **labels**: Free-form labels for additional metadata (e.g., `dns_role = "primary"`) This is a prerequisite for both `docs/plans/nats-deploy-service.md` and `docs/plans/prometheus-scrape-target-labels.md`. ## Host configurations | Host | tier | priority | role | labels | |------|------|----------|------|--------| | ns1 | prod | high | dns | dns_role=primary | | ns2 | prod | high | dns | dns_role=secondary | | nix-cache01 | prod | low | build-host | | | vault01 | prod | high | vault | | | jump | prod | high | bastion | | | template | test | low | - | | | template2 | test | low | - | | | testvm01 | test | low | - | | | vaulttest01 | test | low | vault | | Hosts not listed use defaults (`tier=prod`, `priority=high`, no role/labels). ## Other changes - Module moved to `commonModules` in flake.nix (available to all hosts including template2) - `create-host` template updated to start new hosts in `test` tier - Plan documents updated with implementation status - Added `result-*` to `.gitignore` for parallel nix builds
torjus added 2 commits 2026-02-07 01:52:41 +00:00
Add a shared `homelab.host` module that provides host metadata for
multiple consumers:
- tier: deployment tier (test/prod) for future homelab-deploy service
- priority: alerting priority (high/low) for Prometheus label filtering
- role: primary role of the host (dns, database, monitoring, etc.)
- labels: free-form labels for additional metadata

Host configurations updated with appropriate values:
- ns1, ns2: role=dns with dns_role labels
- nix-cache01: priority=low, role=build-host
- vault01: role=vault
- jump: role=bastion
- template, template2, testvm01, vaulttest01: tier=test, priority=low

The module is now imported via commonModules in flake.nix, making it
available to all hosts including minimal configurations like template2.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
gitignore: add result-* for parallel nix builds
Some checks failed
Run nix flake check / flake-check (pull_request) Successful in 2m4s
Run nix flake check / flake-check (push) Has been cancelled
be2421746e
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
torjus added 1 commit 2026-02-07 01:54:34 +00:00
nix-cache01: set priority to high
All checks were successful
Run nix flake check / flake-check (pull_request) Successful in 2m14s
Run nix flake check / flake-check (push) Successful in 2m17s
a926d34287
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
torjus merged commit 2f195d26d3 into master 2026-02-07 01:56:38 +00:00
torjus deleted branch homelab-host-module 2026-02-07 01:56:38 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: torjus/nixos-servers#27