This is my personal configuration for nix-darwin with dotfiles and tools.
- Clone this repo
- Install homebrew
- Install nix
- Install nix-darwin
Run the initial setup which will build all the derivations which may take a while.
- Override /etc/nix-darwin dir with this repo
Update your machine name in flake.nix
darwinConfigurations."MacBook-Pro"
Update username & home path in flake.nix
users.users.vaporif = {
name = "vaporif";
home = "/Users/vaporif";
};
Inside home.nix
home = {
homeDirectory = "/Users/vaporif";
username = "vaporif";
- Apply config
sudo darwin-rebuild switch
- Allow direnv .envrc for default devshell
direnv allow ~