my nix config
Find a file
Harivansh Rathi a8d72bc28a
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
new keys
2026-03-31 14:42:45 -04:00
.github/workflows ci + lint 2026-03-30 00:28:59 -04:00
config Fix Claude Code Home Manager config 2026-03-31 07:15:36 +00:00
home Fix Claude Code Home Manager config 2026-03-31 07:15:36 +00:00
hosts new keys 2026-03-31 14:42:45 -04:00
lib color 2026-03-30 23:21:00 -04:00
modules optimize the shit out of theme loading 2026-03-30 23:44:32 -04:00
pkgs/sandbox-agent fix 2026-03-31 00:29:54 -04:00
scripts restore aws 2026-03-30 23:03:32 -04:00
.gitignore nvim fix 2026-03-31 00:09:59 -04:00
flake.lock optimize the shit out of theme loading 2026-03-30 23:44:32 -04:00
flake.nix optimize the shit out of theme loading 2026-03-30 23:44:32 -04:00
justfile flake parts 2026-03-30 00:06:09 -04:00
README.md update readme 2026-03-31 01:41:43 -04:00

Nix Leveraging

Single dependency graph that owns a macOs laptop and a Linux KVM. Both collapse into the same reproducible interface.

The darwin host composes nix-darwin, home-manager, and nix-homebrew. The netty host composes nixosSystem, disko, and home-manager.

Global username, per-host metadata and feature flags are encoded as data so leaf modules never need ad hoc platform checks.

The machine surface is split into core, extras, and fonts.

claude-code-nix, neovim-nightly, disko, and nix-homebrew are pinned in the flake

Home Manager is the userland control plane. Rust, Go, Node, Python, AWS, and some other tools are routed into XDG-compliant paths. SSH and GPG permissions are locked down on every activation.

A migration module handles the cutover from legacy symlinks so nothing is left to clean up manually.

A single palette drives colors for Ghostty, tmux, fzf, zsh syntax highlighting, bat, and delta. A generated theme script hot-swaps light and dark across all of them.

Tool configs are repo-owned rather than scattered across $HOME. Global agent skills are installed declaratively using skills.sh and only resync when the manifest hash changes.

Secrets live in Bitwarden and are rendered at activation time using cli Deployment is just switch for the laptop and just switch-netty for the server.

The VPS has a declarative service bundle:

  • static networking
  • nginx with ACME
  • Forgejo mirroring to GitHub
  • sandbox agent behind a CORS proxy
  • bounded GC and journald retention