Home

Awesome

Dotfiles managed by Chezmoi and Ansible ๐Ÿ› ๏ธ

[toc]

Welcome to my collection of dotfiles! These configurations help personalize and streamline my development environment across various tools and applications.

Note: Only Ubuntu 24.04 is supported, In particular Ubuntu Asahi (arm64).

TL;DR

Prerequisites

Make sure you have the following installed:

Run Chezmoi

sh -c "$(wget -qO- get.chezmoi.io) -- init --apply --verbose tmeijn"

Playbook

  1. In a terminal, execute:

    sh -c "$(wget -qO- get.chezmoi.io) -- init --apply --verbose --exclude scripts tmeijn"
    
  2. Close the terminal and open a new terminal and execute:

    sh -c "$(wget -qO- get.chezmoi.io) -- init --apply --verbose tmeijn"
    

    note: this might crash during installation. In that case open a new terminal and keep running chezmoi apply.

  3. After reboot unlock Bitwarden using rbw unlock

  4. Login to Atuin:

    atuin login -u zero-mass92 -p $(rbw get "Atuin Sync") -k "$(rbw get "Atuin Sync" -f Key)"
    
  5. Navigate to the chezmoi dir by executing chezmoi cd

  6. Update the remote url with git remote set-url origin git@gitlab.com:tmeijn/dotfiles.git

  7. Run the script that will generate SSH key and upload both to gitlab.com and github.com:

    bash gen_ssh_key_and_add_to_scms.sh
    
  8. Run the script that will clone all repositories defined by ghorg reclone:

    bash clone_repositories.sh
    

Configure Firefox ๐ŸฆŠ

In a terminal, get the Firefox Account Password by running:

 rbw get "Firefox Account" | pbcopy

Open Firefox and open the top-right menu to enable sync. You will be required to login, use your email and the password you just copied to your clipboard. After logging in, all the Add-ons will be synced to the machine.

When the Bitwarden Add-on is installed, login to your vault.

Login to following sites:

Configure VS Code ๐ŸŽน

down-right, login using your GitHub account. Everything should be synced afterwards.

Speedrun record ๐Ÿƒ

I try and re-install my system about every month while measuring how long it takes to set back up again. Since this is on Ubuntu Asahi, I measure this from the point the OS is installed and a new user with my name has been set up.

Current record: 20:38:32 (- ~12min), set at 28-01-2024.

Tools Used ๐Ÿงฐ

Everything is managed by chezmoi. The run_once_ Bash scripts install all the tools we depend upon and actually manage the machine, namely:

References ๐Ÿ“š

Feel free to explore and modify these dotfiles according to your preferences. Happy coding! ๐Ÿš€

Inspiration for Chezmoi dotfiles

(Legacy) -- References accumulated when trying out Nix