Reproducible set of dotfiles and packages for Linux and macOS
This is the setup I use on all my machines. The installation process is very
simple and allows me to get up and running on any new machine in a matter of
seconds. The following is run on a pristine Ubuntu machine with curl
available:
$ # install from the latest master
$ nix-env -if https://github.com/nmattia/homies/tarball/master --remove-all
$ # make sure that the .bashrc is sourced
$ echo 'if [ -x "$(command -v bashrc)" ]; then $(bashrc); fi' >> ~/.bashrcThe homies will be available in all subsequent shells, including the customizations (vim with my favorite plugins, tmux with my customized configuration, etc). See the introduction blog post for an overview.
Trying out the package set:
$ nix-shell --pureInstalling the package set:
$ nix-env -f default.nix -i --remove-allListing the currently installed packages:
$ nix-env -qListing the previous and current configurations:
$ nix-env --list-generationsRolling back to the previous configuration:
$ nix-env --rollbackDeleting old configurations:
$ nix-env --delete-generations [3 4 9 | old | 30d]