Skip to content
/ dotfiles Public template

My declarative dotfiles managed with Nix, nix-darwin and home-manager, supporting multi-host setups.

Notifications You must be signed in to change notification settings

ryanmalonzo/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❄️ Nix dotfiles

Prerequisites

  1. Install macOS dependencies (if applicable)
xcode-select --install
  1. Install Nix using the Determinate Nix Installer
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install

Then start a new shell session for nix to become available in $PATH.

Usage

  1. Clone this repository
git clone https://github.com/ryanmalonzo/dotfiles ~/dotfiles && \
cd ~/dotfiles
  1. Apply the configuration

For the first time setup:

nix run nix-darwin -- switch --flake .

For subsequent updates:

# Update and apply configuration
darwin-rebuild switch --flake .

Common tasks

# Delete old generations
nix-collect-garbage -d

# Update all flake inputs
nix flake update

# Update specific input
nix flake lock --update-input nixpkgs
nix flake lock --update-input home-manager

Acknowledgements

About

My declarative dotfiles managed with Nix, nix-darwin and home-manager, supporting multi-host setups.

Topics

Resources

Stars

Watchers

Forks

Languages