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
- 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 justCommon
-
Add system to
flake.nix. -
Secrets setup:
-
Download
gustavclausen/nix-secrets
to local machine. -
Follow instructions for setting up bootstrap secrets.
-
-
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