https://github.com/activatedgeek/dotfiles
https://github.com/activatedgeek/dotfiles
dotfiles dotfiles-linux dotfiles-macos pyinfra
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/activatedgeek/dotfiles
- Owner: activatedgeek
- License: apache-2.0
- Created: 2019-03-13T17:55:03.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T20:07:09.000Z (5 months ago)
- Last Synced: 2025-02-04T21:19:59.177Z (5 months ago)
- Topics: dotfiles, dotfiles-linux, dotfiles-macos, pyinfra
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles
[](https://github.com/activatedgeek/dotfiles/actions/workflows/lint.yml)
## Setup
Install [`homebrew`](https://brew.sh),
```shell
/usr/bin/env bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```and install [`uv`](https://docs.astral.sh/uv/) for Python environments,
```shell
brew install uv
```Create a virtual environment with `uv venv`, and install,
```shell
make install
```### Environment Variables
Setup the following environment variables (optionally in a `.env` file).
- `BWS_ORG_ID`: Bitwarden Organization ID to get secrets from. See [docs](https://bitwarden.com/help/secrets-manager-cli/#authentication).
- `BWS_ACCESS_TOKEN`: Bitwarden Secrets token to get secrets. See [docs](https://github.com/bitwarden/sdk/tree/main/languages/python).```shell
BWS_ORG_ID=""
BWS_ACCESS_TOKEN=""
```### SSH
Generate SSH keys using,
```shell
ssh-keygen -t ed25519
```
and move to appropriate folder under [SSH files](./files/ssh).
See SSH [`task`](./tasks/ssh.py) for accessed paths.Then run,
```shell
make infra.home
```Authorize each target remote host manually from the [`inventory`](./inventory) to use the SSH key,
```shell
ssh-copy-id -i files/ssh//id_ed25519
```## Deploy
Finally, run,
```shell
make infra.home
```### Dedeploy
For teardown tasks,
```shell
make uninfra.home
```