Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
I’ve done symlinks into a separate directory before, but by far my favorite method is to just let ~ be a git repo. It’s maximally simple, no other tooling needed besides git.
There are a few key steps to making this work well:
echo'*' > ~/.gitignore: This way git status isn’t full of untracked files. I can still git add -f what I actually want to track.
git branch -m dots: For clarity in my shell prompt.
[ -d "$HOME/.local/$(hostname)/bin" ] && PATH=$PATH:$HOME/.local/$(hostname)/bin and similar if there’s config I want to apply only to certain hosts.
I’ve done symlinks into a separate directory before, but by far my favorite method is to just let
~
be a git repo. It’s maximally simple, no other tooling needed besidesgit
.There are a few key steps to making this work well:
echo '*' > ~/.gitignore
: This waygit status
isn’t full of untracked files. I can stillgit add -f
what I actually want to track.git branch -m dots
: For clarity in my shell prompt.[ -d "$HOME/.local/$(hostname)/bin" ] && PATH=$PATH:$HOME/.local/$(hostname)/bin
and similar if there’s config I want to apply only to certain hosts.Pretty happy with nixos these days, after the initial (crazy) learning curve. But I really like the creative simplicity of this idea
StoleForked this idea from Drew Devault.I’m looking at NixOS now for my server, and while I understand the host config, I’m curious whether I could integrate this into my config in some way.