Files
nix-config-ryan4yin/vars
Ryan Yin 6180072646 chore: drop the KubeVirt guest bits
The k3s-test workers never ran (they were stuck waiting for volume
binding) and will be re-added as microVMs, so remove their KubeVirt
configs and everything that only existed for KubeVirt guests:

- hosts/k8s/k3s-test-1-worker-{1,2,3} and their outputs
- lib/genKubeVirtGuestModule.nix and lib/genK3sAgentModule.nix (the
  latter was only used by the workers)
- the KubeVirt image upload recipes (upload-vm, upload-idols,
  upload-k3s-test) and the kubevirt image package in the idols outputs
- refresh the docs; keep only accurate historical mentions (e.g. the
  restic backup path must stay as it is)
2026-09-21 17:24:40 +08:00
..
2026-03-16 15:30:24 +08:00
2026-09-21 17:24:40 +08:00

Variables

Common variables and configuration used across my NixOS and nix-darwin configurations.

Current Structure

vars/
├── README.md
├── default.nix         # Main variables entry point
└── networking.nix      # Network configuration and host definitions

Components

1. default.nix

Contains user information, SSH keys, and password configuration:

  • User credentials (username, full name, email)
  • Initial hashed password for new installations
  • SSH authorized keys (main and backup sets)
  • Public key references for system access

2. networking.nix

Comprehensive network configuration including:

  • Gateway settings: Main router and proxy gateway configurations
  • DNS servers: IPv4 and IPv6 name servers
  • Host inventory: Complete mapping of all hosts with their network interfaces and IP addresses
  • SSH configuration: Remote builder aliases and known hosts configuration
  • Network topology: Physical machines, VMs, Kubernetes clusters, and SBCs

Host Categories

The networking configuration covers:

  • Physical machines: Desktop PCs, Apple Silicon systems, SBCs
  • Virtual machines: VM guests, K3s nodes
  • Kubernetes clusters: Production and testing environments
  • Network infrastructure: Routers, gateways, and DNS configuration

Usage

These variables are imported and used throughout the configuration to ensure consistency across all hosts and maintain centralized network and security settings.