dotfiles/.config/nix-darwin
2024-04-24 10:11:46 -04:00
..
hosts misc. mid-april update 2024-04-24 10:11:46 -04:00
modules misc. mid-april update 2024-04-24 10:11:46 -04:00
users/sloane misc. mid-april update 2024-04-24 10:11:46 -04:00
.gitignore move nix-darwin config to dotfiles 2024-03-29 20:49:45 -04:00
flake.lock move nix-darwin config to dotfiles 2024-03-29 20:49:45 -04:00
flake.nix move nix-darwin config to dotfiles 2024-03-29 20:49:45 -04:00
README.md move nix-darwin config to dotfiles 2024-03-29 20:49:45 -04:00

sloanelybutsurely/nix-darwin

machine configuration via nix, nix-darwin, and home-manager

installation

install nix

i've used the Determinate Nix Installer

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

clone this repo

mkdir -p ~/.config
git clone git@github.com:sloanelybutsurely/nix-darwin.git ~/.config/nix-darwin

build and activate flake

since darwin-rebuild isn't available yet, use nix run ...

nix run nix-darwin -- switch --flake ~/.config/nix-darwin

this might take a while the first time. once it is done restart the shell.

clone remaining dotfiles

yadm should be available after switching for the first time.

yadm clone git@github.com:sloanelybutsurely/dotfiles.git

note: you might need to use chsh -s to set the nix managed fish shell as your default shell.

making changes

if you make changes to ~/.config/nix-darwin make sure all files are tracked by git and run darwin-rebuild

darwin-rebuild switch --flake ~/.config/nix-darwin