Skip to content

tahirmurata/nix-darwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix-Darwin

Nix for MacBook Air

Usage

  1. Install Command Line Tools

    xcode-select --install
  2. Install Rosetta 2

    softwareupdate --install-rosetta --agree-to-license
  3. Install Nix

    Make sure to enable full disk access for your terminal.

    curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
        sh -s -- install
  4. Clone the repository into ~/.dotfiles:

    git clone https://github.com/tahirmurata/nix-darwin.git ~/nix
  5. Run the link.sh script:

    ~/nix/link.sh
  6. Install nix-darwin:

    Since darwin-rebuild isn't installed yet, the command uses nix to run darwin-rebuild directly from the nixpkgs repository.

    nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/nix
  7. Setup git with gh:

    gh auth login && gh auth setup-git

License

This repository is released into the public domain under the Unlicense license

About

Nix for MacBook Air

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published