Skip to content

About

Nix for MacBook Air (Mirror from GitLab)

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

416 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix config

Nix for MacBook Air

Installation

  1. Install Command Line Tools

    xcode-select --install
  2. Install Nix 1

    curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \
      sh -s -- install
  3. Clone the repository into ~/nix

    git clone https://gitlab.com/paste/nix.git ~/nix
  4. Install nix-darwin 2

    nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/nix

Fish Aliases

Name Definition
nu nix flake update --commit-lock-file --flake ~/nix
nr sudo darwin-rebuild switch --flake ~/nix
lg lazygit
hx helix

Footnotes

  1. When installing make sure you give your terminal full disk access. ↩

  2. Since darwin-rebuild isn't installed yet, we use nix run to call darwin-rebuild from nixpkgs. ↩

About

Nix for MacBook Air (Mirror from GitLab)

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages