my nix configs for my servers and desktop
1# NixOS Infrastructure Configuration
2
3> **Note**: If you're reading this, you're either drunk me, or someone I trust with my hardware. If the latter, I love you. If the former, you need to lose weight stop drinking.
4
5## Overview
6
7Since late May 2025, I've decided to start managing my infrastructure through NixOS. This is still a long migration process from dockerizing almost everything.
8
9## Infrastructure
10
11All machines are named after Goetic demons:
12
13### 🎮 Focalor (Gaming PC)
14**Hardware**: AMD Ryzen 7 5800X + RTX 3070
15
16**Goal**: Convert to headless NixOS host running Windows VM for gaming + local services
17
18**Planned Services**:
19- Local LLM hosting
20- Gaming VM passthrough
21
22### 🏠 Valefar (Home Server)
23**Hardware**: AMD Ryzen 5 5600 + GTX 1650
24
25**NixOS Services**:
26- S3 storage via Garage, see `services/garage.nix`
27- Forgejo, see `services/forgejo.nix`
28- Tailscale connectivity
29
30**Docker Services** ([docker-compose](https://git.nekomimi.pet/waveringana/docker-compose)):
31- PocketID authentication
32- Affine notes
33- Komodo
34- Valheim server
35- Vaultwarden password manager
36- Beszel
37
38### 🍎 Gabriel
39**Hardware**: M4 16gb Mac Mini
40
41**Services**:
42- Runs three github actions runners for embedder, simplelink, and simplegit
43
44### 🏴☠️ Buer (LiteServer VPS)
45**Hardware**: 1 core, 1GB RAM, 20TB data cap
46
47**Services**:
48- Headscale server
49- Exit node for privacy/torrenting
50
51**Notes**: DMCA-friendly provider
52
53### ☁️ Elise (Oracle Cloud VPS)
54**Hardware**: 4 Ampere ARM cores, 24GB RAM, 4TB data cap
55
56**Status**: Currently on Oracle Linux, planning to rename to "Vine"
57
58**Services**:
59- Komodo
60- [Personal website](https://github.com/waveringana/bunsite)
61- [Link shortener](https://git.nekomimi.pet/waveringana/simplelink)
62- [Embedder](https://git.nekomimi.pet/waveringana/embedder)
63- Minecraft server
64- Reverse proxy
65- Tailscale connectivity
66
67**Migration**: Planned conversion to NixOS, everything is under one big docker-compose file
68
69### Fly.io machines
70
71**atl**
72- exit node for headscale based in atlanta
73
74## Future Plans
75
76### Authentication & Identity Management
77- **LDAP Server** - Centralized user directory (considering OpenLDAP or FreeIPA)
78- **Authentik Integration** - Sync PocketID with Authentik for unified SSO across all services
79
80### Monitoring & Observability
81- **Advanced Uptime Monitoring** - Replace basic monitoring with more comprehensive solution
82 - Considering: StatusPage, Cachet, or custom Prometheus/Grafana setup
83- **Network Monitoring** - Deep visibility into network performance and usage
84 - Considering: LibreNMS, Zabbix, or PRTG alternative
85- **Centralized Logging** - Aggregate logs from all services (Loki + Promtail)
86- **Metrics Collection** - Unified dashboards showing health across all machines
87
88### Infrastructure Improvements
89- **Automated Backups** - Implement 3-2-1 backup strategy across all services
90- **Configuration Management** - Complete migration from Docker to declarative NixOS configs
91- **High Availability** - Service redundancy and failover capabilities (especially s3, can have Garage on vine + buer)
92
93### Service Expansion
94- **Media Server** - Jellyfin or Plex for media streaming
95- **CI/CD Pipeline** - Automated testing and deployment for personal projects
96