Skip to content

codatr0n/nix-darwin-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix package manager for macOS

My personal Nix configuration for macOS


usefull inspiration

NixOS links

Install using Determinate Nix' installer

This is easier than using the Nix installer directly, as it will make it more convenient for you.

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
  sh -s -- install

Note: We DONT want to install the Determinate Nix version but the regular Nix, so select no when asked.

create nix darwin template

nix flake init -t nix-darwin

first run of nix flake

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

It might take a while to complete, as it will populate the cache for all the packages.

Reload your terminal to use the new shell.

subsequent rebuilds with nix-darwin

sudo darwin-rebuild switch --flake .

or use the convenience script:

sudo ./rebuild.sh

Note: Must use sudo - nix-darwin master requires root for system activation.

uninstall nix-darwin

nix --extra-experimental-features "nix-command flakes" run nix-darwin#darwin-uninstaller

uninstall Nix

/nix/nix-installer uninstall

About

My Nix Darwin config for work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •