- Clone this repo to the home directory.
-
Install
nix,nix-darwin, andhome-manager. -
Refer to the flakes.
darwin-rebuild switch --flake ~/config/nix-darwin#work
home-manager switch --flake ~/config/nix-darwin/Note to self: The Nix method preferable and up-to-date. The script method could be outdated and needs to be revised before use.
See _scripts/dev_env for setup scripts.
The main use of this method is to put a script to be run by a Devcontainer config to set up basic cli tools.
git clone https://github.com/IanLiuTW/config ~/config && chmod +x ~/config/_scripts/dev_env/setup_apt.sh && ~/config/_scripts/dev_env/setup_apt.shManually set up using stow. Refer to the Nix flakes for packages to install.
git clone https://github.com/IanLiuTW/config ~/config && cd ~/config
# Install the tools and delete their default configs
stow ghostty zsh git #... and others