Personal Nix configuration for macOS and Linux. It uses flake-parts, nix-darwin, home-manager and sops-nix.
- A Nix install with flakes enabled, e.g. via Determinate Systems Nix installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- sops age private key at
~/.nix-config.key.txt
to decrypt home secrets.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
nix run nix-darwin -- switch --flake .
nix flake update
darwin-rebuild switch --flake .
nix run home-manager/master -- switch --flake . -b backup
nix flake update
home-manager switch --flake . -b backup
nix develop .#<shell>