Skip to content

ecklf/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Nix

Installation

  1. Install nix for package and dotfiles management
  2. Install homebrew for GUI app management
  3. Ensure Xcode command line tools are installed and you are signed into the App Store
  4. Ensure you are signed into the App Store
  5. Clone this repository
git clone git@github.com:ecklf/dotfiles.git

Fresh Install

For the first run — darwin-rebuild won't be installed in your path yet

nix run nix-darwin --extra-experimental-features flakes --extra-experimental-features nix-command -- switch --flake ~/dotfiles/nix#omega

Clear the default macOS dock:

defaults write com.apple.dock persistent-apps -array && killall Dock

Usage

# Build the flake `omega` (see flake.nix)
darwin-rebuild build --flake ~/dotfiles/nix#omega
# Switch to `omega` (see flake.nix)
darwin-rebuild switch --flake ~/dotfiles/nix#omega
# Upgrading nix — https://nix.dev/manual/nix/2.22/installation/upgrading
# Updating packages
nix flake lock --update-all
nix flake lock --update-input <input>