Commit Graph

12 Commits

Author SHA1 Message Date
12bf0683f5 modules: add homelab.host for host metadata
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>
2026-02-07 02:49:58 +01:00
879e7aba60 templates: use writeShellApplication for prepare-host script
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 00:14:05 +01:00
cee1b264cd dns: auto-generate zone entries from host configurations
Replace static zone file with dynamically generated records:
- Add homelab.dns module with enable/cnames options
- Extract IPs from systemd.network configs (filters VPN interfaces)
- Use git commit timestamp as zone serial number
- Move external hosts to separate external-hosts.nix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:43:44 +01:00
78c36c5384 Correctly load ptp_kvm
Some checks failed
Run nix flake check / flake-check (push) Failing after 12m5s
Periodic flake update / flake-update (push) Successful in 3m51s
2025-03-16 08:33:29 +01:00
e279e7d940 Add ptp_kvm for vms
Some checks failed
Run nix flake check / flake-check (push) Failing after 9m10s
2025-03-16 08:22:07 +01:00
8700e78752 Remove deprecated routeConfig
Some checks failed
Run nix flake check / flake-check (push) Failing after 11m42s
2024-12-01 02:00:57 +01:00
c4d479e3c6 Improve template prepare script 2024-03-13 22:45:11 +01:00
494b96ac5b Fix template configs 2024-03-13 22:35:52 +01:00
e38d6f44a5 Revert xen changes 2024-03-13 22:28:01 +01:00
159bd25c33 Fix template nic 2024-03-12 19:59:24 +01:00
da2c84527d Change template to use xen 2024-03-12 19:49:04 +01:00
7ba862f21d Add template host 2024-03-08 20:10:50 +01:00