home-manager
and NixOS configs for my machines.
Includes some brew
accoutrement because I don't really like nix-darwin.
From a fresh macOS install:
- Configure SSH keys with GitHub access
- Set macOS hostname:
export NEW_HOSTNAME='<hostname>' sudo scutil --set HostName "$NEW_HOSTNAME" sudo scutil --set LocalHostName "$NEW_HOSTNAME" sudo scutil --set ComputerName "$NEW_HOSTNAME"
- Reboot the machine
- Run detsys installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- Install
brew
:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Clone repo:
nix run nixpkgs#git -- clone git@github.com:ametzger/nixcfg.git
- Install macos stuff:
brew bundle install
- Add line to
flake.nix
for the new hostname, sohomeConfigurations."$NEW_HOSTNAME"
exists - Setup home-manager and activate the profile:
nix run nixpkgs#just -- home