This is my personal config for macOS in nix. It depends on the pre-existing erickisos/dotfiles repository, and all the files are organized inside the home.nix config file.
Some of the following steps are mentioned in the [official documentation](https://nix-community.github.io/home-manager/index.html#ch-installation).
- Clone this repository, the current expected folder is `~/.config/home-manager`
- Install nix by running the command `curl -L https://nixos.org/nix/install | sh`, this will create a volume for your nix versions.
- Create the nix config folder by running `mkdir -p ~/.config/nix`
- Enable nix-command and flakes by running `echo “experimental-features = nix-command flakes” >> ~/.config/nix/nix.conf`
- Add the home manager channel by running `nix-channel –add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager`
- Update the channel by running `nix-channel –update`
- Install home manager by running `nix-shell ‘<home-manager>’ -A install`
- Run `home-manager switch` to apply the configuration