Skip to main content
Same shell, same prompt, same editor on every Mac and every Linux VM.
Language: Nix  ·  Status: active  ·  Last active: this week  ·  Source on GitHub
nix-home is the home-manager layer. It owns $HOME: the user’s shell, dotfiles, git config, tmux, and VS Code. Every command-line tool belongs here before any project touches a thing.

What it does

  • Declares home.packages: user-level command-line tools that follow $HOME, not the system
  • Owns programs.* config: git, zsh, tmux, vim, direnv, ssh, gh
  • Screens public GitHub text with gh-guard: it fails closed when the identifier file is missing, matches whole tokens, and resolves repository visibility with the command’s own token.
  • Screens every gh call. Its recursion check compares resolved paths, so no environment variable turns screening off. The narrative judge allows the name of a secret or variable and the workflow step that receives it. It still blocks a value, a scope, or where a secret is stored.
  • Cross-platform: imported by nix-darwin on macOS, usable standalone on NixOS or Linux
  • Pulls AI tooling from nix-ai when AI command-line tools should live in the user PATH

How it fits

If a config lives in ~/.config/ or ~/.<tool>rc, it belongs here. System-wide stuff goes to nix-darwin; project-only stuff goes to nix-devenv.

Getting started

1

As a nix-darwin import (macOS)

Already wired into nix-darwin. darwin-rebuild switch picks up both.
2

Standalone home-manager (Linux)

nix run home-manager/master -- switch --flake "github:dryvist/nix-home?ref=vN", where vN is the current major tag.
3

Iterate

Edit modules, re-run the rebuild. Generations let you roll back if something breaks.

nix-darwin

The system layer that imports this on macOS.

nix-ai

AI tooling that this layer composes into the user PATH.

nix-devenv

Per-project dev shells, separate from $HOME.

Source on GitHub

Modules, full README.