Something went wrong. Try again.
A personal collection of dotfiles and scripts for syncing settings across machines.
Something went wrong. Try again.
Keys and encrypted secrets #
just recipes in just/age.just and just/encryption.just manage age keys and sops secret files configured in .sops.yaml.
Age keys #
Generate a keypair in ./tmp/ (gitignored) and upload the private key to 1Password:
just create-age-key my-backup-key
This writes tmp/my-backup-key.txt (private key) and tmp/my-backup-keypub.txt (public key), then prompts to create a 1Password document titled Age key > my-backup-key (op must be authenticated). Run just create-public-key my-backup-key to re-derive tmp/my-backup-keypub.txt from an existing tmp/my-backup-key.txt.
Do not commit tmp/*.txt or .age*.txt files; .gitignore excludes both.
Sops secrets #
just edit-key <file>(just ek <file>) — open an encrypted file innanoviasops editjust decrypt-env <file>— decrypt a*.sops.yamlfile to dotenv format (just rundecrypts.pi/.env.personal.sops.yamlto.pi/.env.personal)just decrypt-key <file>— decrypt a*.sopsfile to its non-.sopssibling pathjust update-keys— re-encrypt.pi/.env.sops.yamlafter changing recipients in.sops.yamljust rotate-keys— rotate data keys inside.pi/.env.sops.yaml