Git clone or download this repository into ~/.dotfiles
, e.g.
git clone https://github.com/elgertam/dotfiles ~/.dotfiles
Ensure that the script files in ~/.dotfiles
are executable:
chmod u+x ~/.dotfiles/*.sh
Run ./reload.sh
from ~/.dotfiles
, which will bootstrap your system with Nix, nix-darwin and home-manager and then will set up your system using flake.nix
.
If you make a change to your flake configuration, run ~/.dotfiles/reload.sh
to reload the system with the new configuration.
If you would like to update your system to the latest package sources, run ~/.dotfiles/update.sh
.
If you'd like to uninstall, run /nix/nix-installer uninstall
. You may need to fix some of the files at the following locations:
/etc/zshrc
/etc/bashrc
/etc/zshenv
You may run into various errors relating to files that already exist on the disk. If you see them, follow the included instructions and try the command again. Nix tends to be highly repeatable build system, so the chances of blowing your whole system up are small.
Move vimrc & tmux.conf into the flake
- Zero to Nix https://zero-to-nix.com
- Nix Pills https://nixos.org/guides/nix-pills/
- Intro to the Nix language, derivations and nixpkgs (video) https://www.youtube.com/watch?v=9DJtHIpdp0Y
- home-manager options https://nix-community.github.io/home-manager/options.html
- nix-darwin options https://daiderd.com/nix-darwin/manual/index.html#sec-options
Inspired by https://github.com/ameske/.dot_files