Skip to content

caido/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-config

Single repo to bootstrap macOS, NixOS, and non-NixOS Linux with Nix.

Quickstart (macOS first run)

macOS

  1. Install Nix + enable flakes
xcode-select --install || true
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate
exec "$SHELL" -l
  1. Setup system
sudo nix run \
  --extra-experimental-features 'nix-command flakes' \
  nix-darwin -- switch \
  --flake ./#macos
  1. Update the nix.local

Update the nix.local with the correct username, email and additional config changes you'd like.

  1. Setup home
home-manager switch --flake .#user@macos

Reload your terminal. You should now see a new zshrc prompt showing that the home-manager's dotfiles are loaded.

Rebuilding

macOS

# Rebuild system
sudo darwin-rebuild switch --flake ./#macos

# Rebuild user
home-manager switch --flake .#user@macos

About

Single repo to bootstrap macOS, NixOS, and non-NixOS Linux with Nix.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages