mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-19 06:08:17 +01:00
Aquamarine builds for ai and shoukei across the three platforms, with both daemons logging in as root. They authenticate with their passphrase-free SSH host keys, and ssh_known_hosts now carries each builder's address. Assisted-by: DeepSeek Harness 0.2.0-rc.2 (deepseek-flash)
44 lines
1.3 KiB
Markdown
44 lines
1.3 KiB
Markdown
# 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`
|
|
|
|
Defines:
|
|
|
|
- **Gateway settings**: Main router and proxy gateway configurations
|
|
- **DNS servers**: IPv4 and IPv6 name servers
|
|
- **Host inventory**: static LAN hosts and their interfaces; DHCP/mobile hosts (such as the macOS
|
|
hosts) are omitted by design
|
|
- **SSH configuration**: Host aliases and known hosts configuration
|
|
- **Network topology**: Physical machines, VMs, Kubernetes clusters, and SBCs
|
|
|
|
## Host Categories
|
|
|
|
`networking.nix` maps each host to its LAN address and interface. The authoritative inventory is
|
|
[`../hosts/README.md`](../hosts/README.md); this file holds only the addresses.
|
|
|
|
## Usage
|
|
|
|
These variables are imported and used throughout the configuration.
|