Currently, there is a bootstrap script for Mac OS** Mac OS
- Clone this repository to a directory of your choice. I usually clone it in
$xdg_config_home/nixpkgs
. - Ensure there exist a flake for the current host and username (check out
flake.nix
for the complete list). If setting up a new host, check out Define a new host section. cd
to the repo directory and run:bin/yo-mac-installer install $HOST
- You may need to reboot the system – specially if
skhd
is not working.
To uninstall nix simply run:
bin/yo-mac-installer uninstall
Note this will not remove the nix configuration files.
Host | OS | Notes |
---|---|---|
zebra | Darwin | X86_64 |
chi-aaleali-Mac | Darwin | X86_64 |
dolphin | Darwin | aarch64 |
titan | Linux | x86_64 |
- Create a new directory with the machine’s host name in
modules/hosts/HOST_NAME
and copyconfiguration.nix
andhome.nix
from some other host directory to the newly created one. Then, modify the configuration files per liking. - Add the newly created files to git. There is no need to commit the changes at this point. Nix-flake uses git as the underlying file system.
- Create a new flake entry in
flake.nix
pointing to the newly added host.