Declarative cross-platform system configuration using Nix.
SystemNix manages both macOS (nix-darwin) and NixOS systems through a single, reproducible Nix flake. All system settings, packages, services, and user configurations are defined in code and applied consistently across machines.
| Category | Tools & Services |
|---|---|
| Languages | Go 1.26, Node.js, Bun, Python 3.13, Rust |
| Cloud & Infra | AWS CLI, GCP SDK, kubectl, Helm, Terraform |
| Development | Git, GitHub CLI, Git Town, JetBrains Toolbox, Zed, Sublime Text 4, Fish shell, tmux, Zellij |
| Desktop (NixOS) | Niri (Wayland tiling), DankMaterialShell (Quickshell) status bar / notifications / launcher / lock, SDDM, Ghostty, Kitty, Helium (Chromium browser), Sway (backup WM), Rofi (Sway fallback only) |
| Self-Hosted Services | Immich (photos), Forgejo (Git), Paperless-ngx (documents + AI), SigNoz (observability), SearXNG (privacy search), Pocket ID (SSO), Hermes AI, Gatus, PapDashboard (alert hub + services dashboard), Browser History, InboxClean (Gmail assistant), CV server, Crush Daily, Attic (binary cache), Miniflux (RSS) |
| AI/ML | FastFlowLM (Qwen MoE on AMD NPU), llama-rag (embeddings + reranking on GPU), llama.cpp, AMD XDNA NPU driver |
| Security | Gitleaks, sops-nix, AppArmor, Fail2ban, ClamAV, Touch ID for sudo (macOS) |
| Monitoring | SigNoz (61 alert rules, 10 dashboards), Gatus (298 health checks, Discord alerting), system-health textfile collectors, sev1 desktop escalation |
| Networking | Caddy reverse proxy (TLS), dnsblockd embedded resolver (sdns: DNSSEC, DoT, DoH), SearXNG metasearch, ~4M+ blocked domains |
| Storage | BTRFS with btrbk snapshots (daily, sent to a 2Γ16TB RAID1 HDD pool), ZRAM swap (~62 GiB at 50% of visible RAM), weekly scrub, daily fstrim |
- macOS (Apple Silicon) or Linux (x86_64) with Nix installed
- Administrative access
# Install Nix (Determinate Systems installer)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# Clone and apply configuration
git clone https://github.com/LarsArtmann/SystemNix.git ~/projects/SystemNix
cd ~/projects/SystemNix
nix run .#deploy # Build and deploy to current system
nix flake check --no-build # Validate configuration syntax| System | Hardware | Configuration | Command |
|---|---|---|---|
| macOS (Lars-MacBook-Air) | Apple Silicon, 24GB RAM, 256GB SSD | flake.nix#Lars-MacBook-Air |
nix run .#deploy |
| NixOS (evo-x2) | AMD Ryzen AI Max+ 395, 128GB RAM | flake.nix#evo-x2 |
nix run .#deploy |
SystemNix/
βββ flake.nix # Main entry point with flake-parts
βββ modules/nixos/services/ # 118 NixOS service modules (auto-discovered by filename)
βββ modules/nixos/desktop/ # 13 desktop modules (auto-discovered)
βββ pkgs/ # Custom packages (fastflowlm, systemd-graph, dms-plugins/ with 13 widgets + 2 community)
βββ overlays/ # Shared + Linux-only overlays (callPackage + flake-input overlays)
βββ lib/ # 15 files exporting 13+ helpers (harden, ports, mkDockerServiceFactory, ...)
βββ platforms/
β βββ common/ # Shared across platforms (~80% of config)
β β βββ home-base.nix # Home Manager base (20 program modules)
β β βββ programs/ # Fish, Zsh, Bash, Starship, Git, tmux, ...
β β βββ packages/ # Cross-platform packages & fonts
β β βββ environment/ # Nix daemon settings
β βββ darwin/ # macOS-specific (nix-darwin)
β β βββ default.nix # System config
β β βββ home.nix # User config
β β βββ services/ # LaunchAgents (ActivityWatch, Crush updates)
β β βββ programs/ # Chrome policies, shell aliases
β βββ nixos/ # NixOS-specific
β βββ system/ # Boot, networking, BTRFS snapshots, DNS blocker
β βββ desktop/ # Niri, DankMaterialShell (Quickshell), ssh-suspend-guard
β βββ hardware/ # AMD GPU/NPU, Bluetooth, hardware config
β βββ programs/ # Rofi (Sway backup), Yazi, Zellij, Chromium
β βββ users/ # Home Manager user config
βββ scripts/ # 72 operational scripts (shell + Python)
βββ docs/ # Architecture decisions (ADRs), status reports, troubleshooting
All services are defined as flake-parts modules, reverse-proxied through Caddy with TLS, and monitored by Gatus (323 health checks) + SigNoz (61 alert rules, 10 dashboards). Counts re-derived 2026-10-24, gatus 228β229 re-stamped 2026-10-25 (alert-relay health endpoint, e22397e03), 229β230 same day (node-exporter textfile self-health check, F25/F26), 230β231 same day (unit crash-loop/churn consumption check β the 2026-10-20..25 nsfw 239-restart invisible-loop class), 231β232 same day (Memory Guard Load-Bearing per-boot trip escalation), SigNoz 47β49 same day (unit crash-loop + restart-churn rules), 49β51 same day (/data usage warn>85% + critical>90% β SUPERB T19/F67), counts 131β132 + mkRule 51β52 re-stamped 2026-10-25 (caddy-perhost-drift-audit module + caddy per-host 5xx rule), 132β133 + gatus 232β234 same day (opencloud pilot module + its 2 checks), 133β134 + gatus 234β235 same day (journal-serve module + its Hauptbuch check β owner g-2 vHost answer), 236 re-derived 2026-10-27 (working-tree count vs the 235 stamp β the re-arm wave landed an endpoint without a re-stamp), 134β135 2026-10-26 (media-atlas groundwork module β RO PG role + Immich archive read access, no port/vHost yet; media-atlas v0.1 plan L11), 135β137 2026-10-26 (late-applications + ordering-cycle-audit modules β the gitea-runner/geometrikks/crowdsec deleted-start-job ordering-cycle class fix), 137β138 + gatus 236β237 2026-10-27 (signoz-migrator-guard module + its SigNoz Migrator Guard check β the 1010 squash-gap detector), 138β139 + gatus 237β239 2026-10-27 (btrfs-balance-watch module + its Btrfs Balance Failure Watch check, and the storage-collector freshness check β storage-crisis plan S24/S25), gatus 239β241 2026-10-27 (CV CRM mirror dead-letter alarm + crm-status endpoint liveness β the 2026-10-27 CRM-mirror incident bundle, cv.nix), gatus 241β243 2026-10-28 (paperless-triage module's two document-triage checks, daemon sweep 2bd54ef β endpoint-list diff-verified 2026-11-08: the earlier "browser-history AI-endpoint rewire checks" attribution was inferred from the sibling status-report FILENAME and is false β that strand rewired the LLM API endpoint and added zero gatus checks), 243β247 2026-10-28 (sibling endpoint waves + this session's 2 dnsblockd freshness checks; doc-counts caught every missing re-stamp), 139β141 2026-10-28 (paperless-triage module β the document-triage gate; re-stamped alongside the queue batch's lint close-out), 140β141 2026-10-28 (dns-caddy-wildcard-audit β the DNS-wildcard β Caddy-catch-all pairing guard), gatus 247β250 2026-10-29 (paperless-triage gate pair β the 2026-10-28 stamp bumped only the module count and missed gatus, doc-counts caught it; + the media-atlas endpoint wave), gatus 250β251 2026-10-29 (nsfw-classifier-provider endpoint β the nsfw GPU-fallback wave, doc-counts catch), 141β142 + gatus 251β252 + mkRule 52β53 2026-10-29 (crush-events module β StopFailure/permission telemetry collector + freshness canary + provider-errors-sustained rule; crush-0990 plan T16), gatus 252β253 + mkRule 53β54 + SigNoz 51β52 same day (NetBird Mesh Connection client local-metrics check + netbird management-stream rule β the leverage pass), gatus 253β255 2026-10-29 (a sibling session's endpoint wave landed committed without a re-stamp; re-derived during the paperless metadata audit), gatus 255 2026-10-30 (media-atlas nightlies-fresh check β the C10 last-success stamps surfaced via /health/timers; doc-counts catch), 142β143 2026-11-01 (cvagent module β the daily scan+mesh timer into the CV checkout; doc-counts catch), 143β144 2026-11-01 (audible-sync module β the audible-sync pipeline service; doc-counts catch), gatus 255 re-derived 2026-11-02 (the F3.5 'Browser History' /health addition was a DUPLICATE of the integration-registry check in browser-history.nix β gatus panics on non-unique name+group and restart-looped 131Γ before the dedup; doc-counts counts endpoints, not collisions, so a NEW eval-time name+group uniqueness gate in gatus-config.nix now guards the class), gatus 255β253 2026-11-03 (llama-chat + paperless-gpt config-disabled β the freeze #41-#44 containment; their endpoint pairs went with them; doc-counts catch), gatus 253β254 same day (offsite-borg go-live β the enable flip activated the Offsite Borg Job Service endpoint; doc-counts catch), gatus 254β280 2026-11-04 (backup-coordination per-backup freshness wave β one Backup Freshness: <name> endpoint per registered backup, 26 on evo-x2, each on its own alert episode so a chronically-red aggregate stops masking new stale backups; doc-counts catch), 144β145 2026-11-04 (pim-sync module β the wave's services.pim-sync host half; doc-counts catch), 145β146 2026-11-05 (post-crash-calm-gate module β landed uncounted by its session; doc-counts catch during the standalone flake check), 146β147 2026-11-06 (trash-metrics module β the parked-trash observability leg; doc-counts catch), 147β148 2026-11-07 (vm-top-metrics module β the top-N VmSize reservation-cascade early-warning collector, b0d70d73 postmortem row; landed by its session's daemon sweep, doc-counts catch), 148β149 2026-11-08 (integration-manifest module β the manifest bridge: eval truth baked into the system build; doc-counts catch), 149β150 same day (script-port-audit module β the scripts-surface port-literal eval gate, nix-native plan T5), 150β153 2026-11-10 (journal-import β landed unstamped after the script-port-audit stamp; + timesheets + invoices-dashboard β the 2026-11-10 billing-service wave; doc-counts catch), row-depth verified 2026-10-24 (7 stale rows corrected: SigNoz dashboards 6β10 + cAdvisor removed, Overview/DNS-Blocker/indexer URLs added, bank-sync + indexer-web deploy-state fixed, Dual-WAN marked disabled) β enforced by checks.doc-counts (nix eval .#nixosModules β 158 (2026-11-25: +1 kdump-capture-path, the kdump capture-path contract (docs/services/kdump-capture-path.md); +1 quotaboard β the quotaboard.home.lan exposure module (vHost + 2 Gatus checks + dashboard tile); prior 2026-11-24: β1 attic decommission β cache.home.lan module deleted, the empty binary cache removed, owner directive; prior 2026-11-24: +1 supplements-weekly-print β the weekly supplements-print module rode its 06:22 daemon commit unstamped; doc-counts catch; prior 2026-11-21: +1 summit-planner β the local conference-planner loopback service module; doc-counts catch; prior 2026-11-15: β1 audible-sync retired β its content moved upstream into github:LarsArtmann/audiblesync nixosModules.default, the extraction wave; wrapper re-locked 0b55ba9; ONE dashboard tile; prior 2026-11-14: +1 audiblesync β the AudibleSync WebUI module, locked upstream e8ef419; doc-counts catch; prior 2026-11-13: +1 journal-mesh β the ADR-0009 real-time mesh module rode its 11:29 wave unstamped β doc-counts catch during the nats io-tier/gatus fix battery; prior 2026-11-12: +1 rode the mail-relay-verdicts module wave unstamped β doc-counts catch during the GCP-panel repair commit) nix eval .#nixosConfigurations.evo-x2.config.services.gatus.settings.endpoints --apply 'x: builtins.length x' β 323 2026-11-26 (+1 foreign unstamped endpoint β the integration-registry wave rode the day's daemon commits (2026-11-09 precedent), doc-counts catch during the overview compliance/code-risk deploy; prior β 322 2026-11-25 (+2 Quotaboard ready + Quotaboard quotas API β the quotaboard.home.lan exposure module's registry checks; prior β 320 2026-11-25 (+1 Forgejo Mirror Re-interval, the N-strike quarantine metric's endpoint; prior β 319 2026-11-24 (β2 attic decommission β the Attic Binary Cache + Attic Storage Size registry checks went with the removed module; prior β 321 2026-11-24 (+1 Rust Cache Critical β the foreign rust-cache wave's endpoint, rode its 21:02 daemon commit unstamped (the 2026-11-09 precedent); doc-counts catch during the GLM-5.4 deploy battery; prior β 320 2026-11-24 (+2 ai-meter viewer + ai-meter dashboard β the ai-meter.home.lan viewer wave's registry checks; +2 further foreign endpoints counted honestly at re-derive, committed unstamped via today's daemon waves (the 2026-11-09 precedent); prior β 316 2026-11-24 (+1 Polkit Agent Slot β the polkit-agent-metrics slot-ownership check in gatus-config.nix, the 2026-10-04 polkit report Β§f.11 monitoring leg; doc-counts catch; prior β 315 2026-11-23 (+1 Overview vHost β the full-serving-chain registry check in overview.nix, the 2026-10-07 outage-invisibility batch's gap: the auth-gateway 502 class had no standing probe while :8083 was green; doc-counts catch; prior β 314 2026-11-21 (+2 summit-planner: the /healthz registry check + its Backup Freshness endpoint from the new backup registry entry β the per-backup wave class; doc-counts catch; prior β 312 2026-11-19 (311β312 re-derived during the continuation-IV deploy battery: llama-chat's gatus check REMOVED β1 by the on-demand socket-activation return [7ae2a7c84 β an active probe is a cold-load treadmill] while +2 landed unstamped with the 11-18/19 pbx-follow-ups + health/canary wave; doc-counts catch; prior β 311 2026-11-18 (309β311: project-discovery dashboard + project-discovery daemon β the admin-WebUI bridge wiring wave's registry checks (gatus's first HTTP window into the unix-socket daemon); doc-counts catch; prior 307β309 2026-11-17: PapDashboard Federation Lag + PapDashboard Replica (pbx) β the papdashboard federation/replica monitoring wave landed unstamped via daemon sweeps; doc-counts catch during the cv-server port-gate commit; prior 302β307 2026-11-16: outbound email channel wave β CV Outbound Bounce + CV Reply Loop Telemetry registry checks (cv.nix) + Resend DKIM Record / send CNAME / rsend CNAME DNS value-match checks (gatus-config.nix), the CV funnel-reactivation batch's deployment leg, docs/operations/health-alerting.md Β§"Outbound email channel" recipes; prior 299β301: AudibleSync health + AudibleSync dashboard β the audiblesync integration wave's registry checks; prior 301β302: +1 foreign unstamped endpoint counted honestly at re-derive, doc-counts catch; prior 298β299 2026-11-13: NATS JetStream β the journal-mesh broker's loopback TCP probe, the nats io-tier/gatus fix wave's monitoring leg; doc-counts catch; prior 298 2026-11-11 (297β298: DNS Forwarder Cold β dnsblockd forward-path cold-probe sentinel, the dnsblockd loop-review session's wave landed unstamped via daemon sweep 513084277; doc-counts catch during the audible-sync seed-start deploy attempts; prior 296β297: CV Server Health /health check β the centralized-email endgame wave's cvChecks, landed unstamped via daemon sweep; doc-counts catch during the residue-session deploy battery; prior 295β296: Bank-Sync SCA Tokenless Streak sentinel β the stale-break-glass gauge alarm landed 2026-11-11 unstamped on the anchor; doc-counts catch; prior: 286β295 2026-11-10: timesheets + invoices-dashboard integration wave β per-service registry readiness/health pairs + Backup Freshness endpoints for the two new pool backups; the parallel 06:25 session's integration; doc-counts catch), 286 2026-11-09 (re-derived β the nsfw rework's 280β279 stamp under-counted its own tree, a +1 endpoint rode the 00:1x window unstamped; doc-counts catch during the restic stale-lock fix), 280β282 2026-11-08 (mr-sync Dashboard endpoint β the SUPERB own-project delegation wave enabled mr-sync-dashboard's registry check; +1 sibling-session endpoint rode unstamped; doc-counts catch during the D1 deploy battery), 282β283 2026-11-08 (Enabled But Inactive Units β the enabled-but-inactive detection net's consumer check, this session; the sweep metric shipped 2026-10-06), 283β284 2026-11-09 (Nix Store Usage β the /nix GC-retention growth threshold check, task 000001a1bdadc729), 284β285 2026-11-09 (Gatus Chronic Red β the mr-sync 15-days-unacted escalation signal, same task), 285β286 2026-11-09 (PapDashboard Ingest β the ingest-freshness check riding the system-health reachable/last-ok gauges, task 000001a1bf60aa5348fa309ba6f300000000), gatus 295β296 2026-11-11 (Bank-Sync SCA Tokenless Streak sentinel β the stale-break-glass gauge alarm, AGENTS/07 poison-law alert; doc-counts catch); 61 mkRule sites + 10 dashboard JSONs in modules/nixos/services/_signoz-alerts.nix (re-derived 2026-11-11 β the prose had drifted at 54 while the file carried 60 rule sites; +1: memory-throttle-chronic, the between-deploy MemoryHigh tripwire)):
| Service | Port | URL | Description |
|---|---|---|---|
| Caddy | 443 | *.home.lan |
Reverse proxy with sops-managed TLS certs |
| Immich | 2283 | immich.home.lan |
Self-hosted Google Photos alternative (PostgreSQL + Redis + ML) |
| OpenCloud | 9200 | cloud.home.lan |
File sync & share pilot (posix driver, Pocket ID OIDC, LAN/VPN-only) |
| Forgejo | 3000 | forgejo.home.lan |
Self-hosted Git forge with GitHub mirror sync & Actions |
| SigNoz | 4317, 4318, 8080 | signoz.home.lan |
Observability: traces, metrics, logs + node_exporter, 10 dashboards |
| Pocket ID | 1411 | auth.home.lan |
Passkey-based SSO/IDP + oauth2-proxy forward auth |
| Hermes | β | β | AI agent gateway (Discord bot, cron scheduler, multi-provider LLM) |
| Paperless-ngx | 2892 | paperless.home.lan |
Document management + OCR + AI tagging (PG backend, Tika/Gotenberg, NPU LLM) |
| PapDashboard | 8088 | dash.home.lan |
Alert lifecycle hub + NPU insight enricher + services dashboard (ingests Gatus; old alerts.home.lan redirects) |
| Browser History | 8087 | history.home.lan |
Cross-device browser history (WebAuthn + Pocket ID OIDC) |
| InboxClean | 8099 | inbox.home.lan |
Gmail AI assistant (event-sourced, multi-account, HTMX dashboard) |
| CV server | 8098 | cv.home.lan |
Resume/CV generator (typst PDF, pipeline scanner + LLM evaluation) |
| CV Agent | 8787 (loopback) | cvagent.home.lan |
Code-derived CV evidence: daily scan+mesh export into the CV checkout, read-only dashboard (Layer 2 protected) |
| TaskChampion | 10222 | tasks.home.lan |
Taskwarrior sync server (cross-platform + Android) |
| Overview | 8083 | overview.home.lan |
Local project dashboard (git repo discovery, stats, activity) |
| Logs | β | logs.home.lan |
Redirect to the SigNoz logs explorer (Dozzle retired with the Docker removal, 2026-10-08) |
| Mail Relay | 25 | β | Central outbound SMTP null client (loopback-only, relays via Resend; Paperless/Forgejo/system mail) |
| Miniflux | 8101 | rss.home.lan |
Minimalist RSS reader (Go + local PostgreSQL, native OIDC via Pocket ID) |
| Kith CRM | 8091 | crm.home.lan* |
Event-sourced CRM (Go + go-cqrs-lite) β Twenty replacement, rebranded Ledger β Kith 2026-10-08; Pocket ID OIDC is the only sign-in since 2026-10-17 (-passkeys=false) |
| indexer-web | 8105 | index.home.lan |
Event-sourced docs index WebUI (deployed) |
| NetBird VPN | 51820 | β | Self-hosted WireGuard mesh (pbx control plane) β CONNECTED 2026-10-15 (evo-x2 enrolled; runbook docs/services/net-vpn.md) |
| NSFW Filter | 8104 | nsfw.home.lan |
Go/ONNX NSFW image server β browser-extension backend (auto-discovery + pairing token) |
| bank-sync | 8097 | banksync.home.lan |
Wise bank-sync dashboard (Layer 2 protected; canary + Paperless/Qonto sync units deployed) |
| journal-serve | 8484 (loopback) | journal.home.lan |
Hauptbuch dashboard over the journal accounting kernel (Layer 2 protected; unit binds loopback only until upstream T16 auth) |
| File Renamer | 8086 | renamer.home.lan |
AI file-and-image renamer service |
| Monitor365 | 3001 | monitor.home.lan |
Device monitoring agent + server dashboard (re-enabled 2026-10-18 after the upstream preparedSrc restructure unblocked the build) |
| OpenSEO | 3002 | seo.home.lan |
Self-hosted SEO suite (rank tracking, keyword research) |
| Crush Daily | 8081 | daily.home.lan |
AI-powered development insights from Crush databases |
| Quotaboard | 8791 (loopback) | quotaboard.home.lan |
AI coding-plan quota dashboard (Z.ai GLM + Synthetic; always-on user service, Layer 2 protected) |
| PMA | β | β | Projects Management Automation (AI commit messages, repo discovery) |
| Dual-WAN | β | β | MPTCP dual-WAN with route health monitoring (module in-tree, currently disabled) |
| Gatus | 9110 | status.home.lan |
Health check monitoring with Discord alerts |
| DNS Blocker | 53, 8050 | dnsblock.home.lan |
dnsblockd (embedded sdns resolver: DNSSEC, DoT, DoH, caching), 23 blocklists, ~4M+ domains blocked |
| Mullvad VPN | β | β | WireGuard VPN β currently disabled (talpid_dns corrupted resolv.conf) |
| DiscordSync | β | β | Continuous Discord channel backup bot |
| SearXNG | 8889 | search.home.lan |
Privacy metasearch engine (70+ engines, no tracking, POST-only, DuckDuckGo icons) |
| FastFlowLM | 52625 | β | NPU LLM server (Qwen3.6 MoE, socket-activated, OpenAI-compatible) |
| llama-rag | 8848, 8849 | β | GPU embeddings (bge-m3) + reranking (bge-reranker-v2-m3) for RAG |
| llama-vlm | 8127, 8128 | β | CPU socket-activated vision servers (Gemma-4-E4B image reasoning + NSFWCaption-v3 Qwen3-VL-8B captioning, idle-stop) |
| systemd-graph | 8847 | graph.home.lan |
Live systemd dependency graph (LAN-only) |
| timer-monitor | β | timers.home.lan |
Read-only systemd services+timers audit (LAN-only) |
- dnsblockd with embedded sdns recursive resolver (DNSSEC, DoT, DoH, caching, local zones, LAN ACLs)
- ~4M+ blocked domains across 23 blocklists (ads, trackers, malware, telemetry, gambling, native device trackers)
- Blocklist hot-reload with automatic cache flush
- Local
.home.lanDNS zone β explicit per-service records (dnsblockd has NO wildcard local resolution; new subdomains must be listed) - IPv6 disabled at DNS level (no global IPv6 on evo-x2)
- DNS failover: Raspberry Pi 3 secondary resolver with VRRP VIP (planned)
- DankMaterialShell (DMS / Quickshell): Desktop shell replacing Waybar, Dunst, wlogout, swaylock, and rofi β status bar, notifications, launcher, lock screen, power menu, clipboard, wallpaper
- Ghostty: Primary terminal (GPU-accelerated, native Wayland)
- Kitty: Backup terminal (GPU-accelerated, image display)
- SDDM: Login manager with Catppuccin Mocha theme
- Theme: Catppuccin Mocha across all applications (GTK, Qt, terminal, browser)
- Helium: Ungoogled Chromium fork (Chromium 151) with Widevine DRM, VA-API hardware video decode, Catppuccin Mocha theme
- Backup WM: Sway configured as fallback (uses Rofi, not DMS)
| Component | Configuration |
|---|---|
| CPU | AMD Ryzen AI Max+ 395 (Strix Halo), amd_pstate=guided |
| GPU | AMD integrated (amdgpu), Mesa latest, ROCm compute stack |
| NPU | AMD XDNA via nix-amd-npu, XRT runtime |
| Memory | 128GB physical (~124 GiB visible after the 1 GiB BIOS-floor GPU carveout), ZRAM swap (~62 GiB at 50%, zram-only), tuned for AI/ML workloads |
| Storage | BTRFS root (zstd, QLC-tuned: commit=300, daily fstrim) + /data (zstd:3) + ClickHouse XFS partition + 2Γ16TB BTRFS RAID1 HDD pool; btrbk snapshots (daily) sent to the pool nightly |
| Boot | systemd-boot (50 generations), latest Linux kernel |
| Network | Realtek 2.5G Ethernet, MediaTek WiFi |
# Core workflow
nix flake check --no-build # Validate configuration syntax (fast)
nix eval .#nixosConfigurations.evo-x2.config.system.build.toplevel # Quick eval
nix run .#deploy # Build and deploy via nh
nix run .#pre-deploy-check # Catch boot-breaking issues before switch
nix run .#post-deploy-check # Verify services are functional after deploy
nix fmt # Format code with treefmt + alejandra
nix flake update # Update flake inputs
# Maintenance
nix-collect-garbage -d # Clean old generations
scripts/health-check.sh # System health check
scripts/verify-deployment.sh # Deployment readiness validator
# DNS diagnostics
nix run .#dns-diagnostics # Full DNS diagnostics (Linux)
scripts/dns-diagnostics.sh # Direct DNS diagnostics script
# Service status checks
scripts/status-report.sh # Comprehensive system statusShared across macOS and NixOS via platforms/common/programs/:
| Program | Configuration |
|---|---|
| Fish | Primary shell, shared aliases, carapace completions, 5000 history |
| Zsh | Secondary shell with autosuggestions, syntax highlighting |
| Starship | Prompt with Catppuccin Mocha, performance-optimized |
| Git | GPG signing, SSH remotes, git-town integration |
| tmux | Catppuccin theme, resurrect plugin, SystemNix dev session |
| FZF | Ripgrep integration, reverse layout |
| KeePassXC | Browser integration (Chromium + Helium) |
| Chromium | Enterprise policies, YouTube Shorts Blocker, HTTPS-only |
56β68 inputs β key ones below:
| Input | Purpose |
|---|---|
nixpkgs |
Package collection (unstable) |
nix-darwin |
macOS system management |
home-manager |
Cross-platform user configuration |
flake-parts |
Modular flake architecture |
niri |
Scrollable-tiling Wayland compositor |
nix-homebrew |
Declarative Homebrew management (macOS) |
sops-nix |
Secrets management with age encryption |
nix-amd-npu |
AMD NPU (XDNA) driver |
nix-ssh-config |
Shared SSH configuration |
crush-config |
AI assistant configuration |
hermes-agent |
AI agent gateway (Discord bot) |
silent-sddm |
SDDM theme with Catppuccin support |
signoz-src |
SigNoz observability source (built from source) |
signoz-collector-src |
SigNoz OTel collector source |
dnsblockd |
Custom DNS blocker (Go) |
treefmt-full-flake |
Code formatting (alejandra + more) |
nixos-hardware |
Hardware-specific NixOS modules |
helium |
Helium browser (macOS) |
nur |
Nix User Repository |
wallpapers-src |
Wallpaper collection |
Color schemes are defined locally in platforms/common/theme.nix (not via a flake input).
Six GitHub Actions workflows (.github/workflows/), running on push/PR to master (Ubuntu runner):
- nix-check.yml β
nix flake check --no-build, statix/deadnix lints, formatting arbiter (nix fmt -- --ciover the locked treefmt), package builds, VM tests (private inputs via SSH deploy keys; privategithub:lock nodes via theNIX_GITHUB_RO_TOKENfallback) - nixpkgs-compat.yml β daily nixpkgs compatibility eval
- secret-history-scan.yml β full-history secret scan (gzip-aware python scanner; CI counterpart to gitleaks)
- go-deps-audit.yml β nightly go.mod-vs-flake.lock dependency audit (
scripts/audit-go-deps.sh) - image-updates.yml β daily Docker image digest/semver drift check against Docker Hub
- flake-update.yml β scheduled input bump attempts
The repo uses .githooks/pre-commit (via core.hooksPath), linting STAGED files only β not the entire codebase:
- gitleaks (secrets), deadnix + statix + the locked formatter (Nix), shellcheck
nix flake check --no-build(eval + all assertions incl. the 7 audit modules)- Guard scripts: tarball-type nixpkgs rejection, Gatus
pat()glob-trap lint,*_templ.gocommitted check, nullglob command-indirection audit, Unknown-Author identity guard
| Guide | Description |
|---|---|
| AGENTS.md | AI assistant guide and project conventions |
| docs/CONTRIBUTING.md | Contributor setup, style, and verification commands |
| Architecture Decisions | ADRs for key design choices |
| Project Status | Development status reports |
| Troubleshooting | Common issues and solutions |
| Architecture Diagrams | Mermaid diagram collection |
nix flake check --no-build # Quick syntax validation
nix-collect-garbage -d # Clean and rebuild
nix run .#deploy # Rebuild and deploynix profile add nixpkgs#gnupg
# Path: ~/.nix-profile/bin/gpgnix search nixpkgs <package-name>scripts/dns-diagnostics.sh # Full DNS diagnosticsSee docs/CONTRIBUTING.md for the full contributor guide, style rules, and verification commands.
Quick checklist:
- Make changes in
platforms/common/for cross-platform config - Use platform-specific directories for platform differences
- Run
nix flake check --no-buildbefore committing - Follow existing code style (2-space indentation for Nix)
- Install pre-commit hooks:
pre-commit install
Personal configuration. Adapt for your own use.