Setup your user environment just the way you want with Nix.
-
Add
packageOverrides
to the attrset returned by your${HOME}/.nixpkgs/config.nix
(see my example above). -
Then with one command you can setup your whole environment:
nix-env -i desktop-mbbx6spp
.
Then all you need is a simple ~/.bash_profile
script like so:
export EDITOR=vim-funops
export GIT_EDITOR=vim-funops
export DEFAULT_PROFILE=funops
export PROFILE=funops
alias vim="vim-${PROFILE}"
alias gvim="vim-${PROFILE} -g"
Boom.
Use the exact same vim config on all your development machines (requires Nix and nixpkgs
).