Skip to content

My Nix config

Notifications You must be signed in to change notification settings

gustavclausen/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

My Nix config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published