GitHunt
GU

gustavclausen/nix-config

My Nix config

nix-config

Based on the following configs:

Thanks for the inspiration.

Overview

My Nix configuration for macOS/Darwin (nix-darwin + home-manager).

Usage

Setup

OS-Specific

macOS/Darwin
  1. Install base tools
# Command-line tools
xcode-select --install

# Rosetta
sudo softwareupdate --install-rosetta

# Nix
sh <(curl -L https://nixos.org/nix/install)

# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Just
brew install just

Common

  1. Add system to flake.nix.

  2. Secrets setup:

    1. Download
      gustavclausen/nix-secrets
      to local machine.

    2. Follow instructions for setting up bootstrap secrets.

  3. Add GitHub Personal Access token to Nix config (default locations per OS
    documented here):

    access-tokens = github.com=<PAT>

Commands

See Justfile for common commands.

  • Deploy new configuration:

    just switch "<system config name>"
  • Rollback configuration:

    just rollback "<system config name>"
  • Update Flakes:

    just update

Languages

Nix98.2%Just1.8%

Contributors

Created February 4, 2024
Updated February 27, 2026
gustavclausen/nix-config | GitHunt