Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.35 KB

nix-darwin-install.md

File metadata and controls

61 lines (41 loc) · 1.35 KB

Nix-Darwin Install Guide

Inspiration

Steps

  1. Install Nix

    sh <(curl -L https://nixos.org/nix/install)
    mkdir ~/.config/nix
    echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  2. Clone nixos-config repo

    nix-env -iA nixpkgs.git
    git clone https://github.com/mccurdyc/nixos-config ~/.config/nixos-config
    cd ~/.config/nixos-config
  3. Rebuild

    sudo NIXPKGS_ALLOW_UNFREE=1 \
    HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt \
    nix build --extra-experimental-features 'nix-command flakes' --impure '.#darwinConfigurations.faamac.system'

    Activate

    export NIXPKGS_ALLOW_UNFREE=1; /result/sw/bin/darwin-rebuild switch --impure --flake '.#faamac'
    rm -rf result
  4. Start tailscale daemon

    sudo tailscaled install-system-daemon
    tailscale login

Common Commands

Rebuilding System

NIXPKGS_ALLOW_UNFREE=1 darwin-rebuild switch --impure --flake '.#faamac'

Open Questions