Something went wrong. Try again.
configuration with chezmoi because I have too many machines
Something went wrong. Try again.
Files
- Shell 78%
- Lua 22%
README.md
dotfiles #
Making machines nice
Warning
You should probably not use this without understanding what it does. It's made for my own preferences and you probably disagree on a bunch of stuff
.chezmoidata.yaml setup #
The bootstrap script and templates read user- and git-identity data from:
~/.local/share/chezmoi/.chezmoidata.yaml
You can let ./init/macos.sh generate this file interactively, or create it manually.
Example #
---
user:
name: Your Name
email: your.email@example.com
git:
includes:
- private:
path: ~/Developer/Private
ssh_key: ~/.ssh/id_ed25519
utils:
ai: false
azure: false
kubernetes: false
microsoft: false
terraform: false
wireguard:
interface:
address: "10.0.0.2/24"
dns: "10.0.0.1"
peers:
- public_key: "peer_public_key_here"
endpoint: "vpn.example.com:51820"
allowed_ips: "10.0.0.0/24"
persistent_keepalive: 25
How to use #
- Ensure
user.emailis set (used as the SSH key comment inssh-keygen -C). - Ensure
git.includes.private.ssh_keypoints to the private SSH key path to create/use. - (Optional) Configure
wireguardsection if you want to set up WireGuard client connectivity:- Set
enabled: trueto activate WireGuard configuration - The WireGuard private key is automatically generated on first run (stored in
/opt/homebrew/etc/wireguard/.private.key) - Configure your interface address(es) for IPv4 and/or IPv6
- Add peer configurations with their public keys and endpoints
- Run the setup and retrieve your public key from the output to add to your WireGuard server
- Set
- Run
./init/macos.sh(optionally with an HTTPS repo URL argument).