Skip to content

cawaltrip/dotfiles

Repository files navigation

dotfiles

license

chezmoi Bitwarden AWSsecretsmanager

macOS Linux Windows

This is a collection of my dotfiles, managed with chezmoi. Secrets are managed using the Bitwarden CLI, and AWS Secrets Manager.

Installation

  1. Install chezmoi.
  2. Install Bitwarden CLI
  3. 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
    1. The contents of bwtoken should be a sourceable script that export the variables BW_CLIENTID, and BW_CLIENTSECRET. See the personal API key help page for steps to obtain those values.
    2. The contents of bwpass should be your Bitwarden password. See the unlock options section of the CLI help page for details.
  4. Login to Bitwarden.
    $ bw login --apikey
    $ export BW_SESSION=$(bw unlock --passwordfile ${XDG_CONFIG_HOME}/bitwarden/bwpass --raw)
  5. Initialize this repository.
    $ chezmoi init cawaltrip
  6. Answer the questions asked during the initialization.

Post-installation steps

After all of the applications are installed, a few have manual configuration steps.

Firefox

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).

License

This repository is licensed under the MIT No Attribution (SPDX: MIT-0) license. See the license file for the full text.