Skip to content

benjidotsh/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix for macOS configuration

This is my personal Nix for macOS configuration.

Prerequisites

Nix
$ sh <(curl -L https://nixos.org/nix/install)
Xcode Command Line Tools
$ xcode-select --install
Rosetta 2
$ softwareupdate --install-rosetta

Get started

1. Clone this repository

$ git clone [email protected]:benjidotsh/nix.git

2. Deploy the configuration

$ nix build .#darwinConfigurations.$(hostname -s).system --extra-experimental-features 'nix-command flakes'

$ sudo ./result/sw/bin/darwin-rebuild switch --flake .#$(hostname -s)

After deploying the configuration for the first time, you can simply run just deploy to apply changes.

To view all available commands, run just.

About

Nix for macOS configuration

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •