Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.
benjidotshPublic archive

About

Nix for macOS configuration

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

287 Commits

Folders and files

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

Getting started

1. Clone this repository

$ git clone git@github.com: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.

3. Configure 1Password for secrets management

$ opnix token -path ~/.config/opnix/token set

4. Redeploy the configuration

$ just deploy

Additional configuration

The following configuration can't be managed by Nix and needs to be configured manually:

  • Enable the 1Password SSH agent

    1. Open 1Password → Settings → Developer.
    2. Enable “Use the SSH agent”.
  • Disable Terminal prompt line markers

    1. Navigate to Terminal → Edit → Marks.
    2. Disable “Automatically Mark Prompt Lines".

About

Nix for macOS configuration

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages