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

Getting 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.

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”.
  • Apply the custom Terminal theme

    1. Open Terminal → Settings → Profiles.
    2. Import catppuccin-macchiato.terminal and set it as default.
  • Disable Terminal prompt line markers

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

About

Nix for macOS configuration

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •