Skip to content

modiase/dotfiles

Repository files navigation

dotfiles & Infrastructure

Quickstart

git clone git@github.com:modiase/dotfiles.git ~/dotfiles \
    && cd ~/dotfiles \
    && bin/bootstrap \
    && source ~/.nix-profile/etc/profile.d/nix.sh \
    && bin/activate

Building System Images

nix run .#build-system-image            # Interactive selection
nix run .#build-system-image -- hekate  # Build specific system

Secrets Management

The secrets CLI provides unified access to credentials across platforms (macOS Keychain, Linux pass, GCP Secret Manager).

secrets list                              # List local secrets
secrets list --network                    # List GCP secrets
secrets get <name>                        # Get secret (copies to clipboard)
secrets get <name> --read-through         # Try local first, fall back to GCP
secrets get <name> --read-through --store-local  # Cache GCP secret locally
secrets store <name> <value>              # Store a secret

GCP Authentication

The --network flag uses Google Cloud Secret Manager, which requires Application Default Credentials (ADC).

macOS / Interactive:

gcloud auth application-default login

Headless servers:

gcloud auth application-default login --no-browser

This outputs a URL to visit on another machine. Complete authentication there and paste the code back.

Verify ADC is configured:

gcloud auth application-default print-access-token

About

Configuration files for my various developer tools

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors