Current machines:
- Early 2020 Macbook Air
- 2022 HP Omen (dual booting Mint and Arch)
Setup steps on new machine:
-
Copy
agekey from existing machine via:hostname -I- identify IP address on target machinemkdir -p ~/.config/chezmoion target machinescp ~/.config/chezmoi/key.txt user@target-machine-ip:~/.config/chezmoi/key.txt
-
Clone dotfiles with
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply aneziac -b $HOME/.local/bin
-
cdintonix-configand runsh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon(remove --daemon for MacOS) to install nix, then
nix run home-manager/master -- switch --flake .#mint --impureNote after this initial setup, future runs can use just
home-manager switch --flake .#mint --impurewhere in both cases replace
mintwitharchormacosas needed. This installs all base packages and sets upzsh. -
Now that you can decrypt the
.sshGH private key, apply and change the chezmoi remote to use ssh:chezmoi apply git remote set-url origin [email protected]:aneziac/dotfiles.git
-
Add hostess to sudoers (to prevent distractions)
echo "$USER ALL=(ALL) NOPASSWD: $(which hostess)" | sudo tee /etc/sudoers.d/hostess
TODO:
- automatic keyd setup; also should be managed via nix