This is a collection of my dotfiles, managed with chezmoi. Secrets are managed using the Bitwarden CLI, and AWS Secrets Manager.
- Install chezmoi.
- Install Bitwarden CLI
- Configure Bitwarden.
Warning Make sure that the files have the below file permissions otherwise someone else may be able to read the contents!
$ bw_conf=${XDG_CONFIG_HOME}/bitwarden $ install -d ${bw_conf} $ install -m 0600 /dev/null ${bw_conf}/bwpass $ install -m 0600 /dev/null ${bw_conf}/bwtoken
- The contents of
bwtoken
should be a sourceable script that export the variablesBW_CLIENTID
, andBW_CLIENTSECRET
. See the personal API key help page for steps to obtain those values. - The contents of
bwpass
should be your Bitwarden password. See the unlock options section of the CLI help page for details.
- The contents of
- Login to Bitwarden.
$ bw login --apikey $ export BW_SESSION=$(bw unlock --passwordfile ${XDG_CONFIG_HOME}/bitwarden/bwpass --raw)
- Initialize this repository.
$ chezmoi init cawaltrip
- Answer the questions asked during the initialization.
After all of the applications are installed, a few have manual configuration steps.
The initialization will install Firefox and create a profile including custom user chrome, and will configure Firefox to use it. Extensions, however, aren't installed. Open Firefox, and login to Firefox Sync to sync extensions and their settings. The only extension I have with a lot of customization is Tree Style Tab (which is what userChrome.css
helps style).
This repository is licensed under the MIT No Attribution (SPDX: MIT-0
) license. See the license file for the full text.