9d260af0c683ba9671015769829d83b4bee841cd
Dotfiles
Dotfiles managed by chezmoi. The repo works on Arch and Ubuntu (not complete) and has three machine classes: server, desktop, and laptop.
First-time install on a new machine
1. Install prerequisites
# Arch
sudo pacman -S git curl age jq chezmoi
# Ubuntu
sudo apt-get install git curl age jq chezmoi
2. Encryption key
The age key needs to be placed at ~/.config/chezmoi/key
With following permissions
chmod 600 ~/.config/chezmoi/key
3. Init and Apply
chezmoi init --apply https://gitea.keuledrive.de/Keule2/Dotfiles
Will prompt some questions for template data.
Usage
| Command | Effect |
|---|---|
chezmoi apply |
apply any local changes to dotfiles and run-once scripts |
chezmoi update |
git pull + apply |
chezmoi edit <file> |
open a tracked file in $EDITOR |
chezmoi cd |
shell into the source dir |
chezmoi diff |
show pending changes against your home |
chezmoi managed |
list files chezmoi manages |
Changing the system class
Edit the config file
$EDITOR ~/.config/chezmoi/chezmoi.toml # change [data].system
chezmoi apply
TODO
- Check packages e.g. gaming Steam/Lutris
Languages
Lua
57.4%
Go Template
26.2%
Shell
11.1%
CSS
5.3%