nix-macos/README.md
2025-02-04 16:12:34 +01:00

622 B

Dotfiles with Nix on macOS

Installation

# Install nix [without the --determinate flag]
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

# Install brew [for casks]
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Get repo
git clone https://github.com/cupcakearmy/nix-macos ~/.config/nix-darwin

# Installation
nix run nix-darwin -- switch --flake ~/.config/nix-darwin#mbp

Sops

Secrets are managed by sops-nix

# To edit the secrets files
nix shell nixpkgs#sops
sops ./secrets/foo.yaml