Reproducible set of dotfiles and packages for Linux and macOS
Install with nix profile install
. Make sure to update your .bashrc
or .bash_profile
:
$ echo 'if [ -x "$(command -v bashrc)" ]; then $(bashrc); fi' >> ~/.bashrc
The 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.
Make sure to install a font with icons (e.g. Inconsolata) in iterm2 and tell iterm2 to "Use powerline glyphs".
Installing the package set:
$ nix profile install
Updating the packages:
$ nix flake update
Try out the new packages:
$ nix-shell
Upgrading to the new profile:
$ nix profile upgrade X # find X with "nix profile list"
Listing the previous and current configurations:
$ nix profile history
Deleting old configurations:
$ nix profile wipe-history
Ensure build is sandboxed:
# /etc/nix/nix.conf
build-users-group = nixbld
# /Library: cc is installed in /Library/Developer (and used from /usr/bin
/cc and others)
# /System/Library: needed for system-wide Perl
sandbox-paths = /bin/bash /bin /usr/bin /usr/sbin /Library /System/Librar
sandbox = true