An attempt to manage my dotfiles across an axis of multiple machines and multiple distros.
xz # To unpack nixos tarball
wget/curl
shasum/sha256sum/openssl
$ nix-channel --update # Update repos
$ nix-env -u '*' # Update packages
Installing proprietary packages:
$ git clone https://github.com/void-linux/void-packages packages --depth 1 --recursive
$ cd packages
$ echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf
$ ./xbps-src binary-bootstrap
$ ./xbps-src clean
$ ./xbps-src pkg -f <pkg>
$ ./xbps-src install <pkg>
$ sudo xbps-install --repository=hostdir/binpkgs/nonfree <pkg>
Tmux usually has fucked up colours unless you compile the tmux-256color
terminfo file in ~/.local/share/terminfo/t/tmux-256color.terminfo
using
tic <file>
.
Setup system local configuration in ~/.gitconfig-local
such as
user credentials or proxy configs on corporate networks.
Make sure to add public key to GitHub to allow pushing/pulling etc.
$ ssh-keygen -t ed25519 -C "me@mail.com"
$ eval "$(ssh-agent -s)" # Optionally add to ssh-agent or just add to ssh config.
$ ssh-add ~/.ssh/id_ed25519
There is a file ~/.bashrc-local
for setting up system local
settings and variables.
It is probably best to untrack these files after making local alterations.
$ git update-index --skip-worktree .gitconfig-local # From project root
$ git update-index --skip-worktree .bashrc-local
Fix permissions of GPG directory:
$ chown -R $(whoami) ~/.gnupg/
$ find ~/.gnupg -type f -exec chmod 600 {} \;
$ find ~/.gnupg -type d -exec chmod 700 {} \;