https://github.com/ltbringer/reboot
How to reboot my machine with everything I need.
https://github.com/ltbringer/reboot
Last synced: about 1 year ago
JSON representation
How to reboot my machine with everything I need.
- Host: GitHub
- URL: https://github.com/ltbringer/reboot
- Owner: ltbringer
- License: mit
- Created: 2024-11-28T00:25:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T21:43:39.000Z (about 1 year ago)
- Last Synced: 2025-03-22T22:33:18.843Z (about 1 year ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reboot
This repo is a way to recreate my home machine's environment anywhere.
## Pre Requisites
1. You need the following dependencies to get started.
```
apt install -y git build-essential gnupg
```
2. This repo requires attachments on Bitwarden which is a premium (~$10/year) feature.
3. Create a folder/directory and attach your secrets. At least ssh and gpg keys.
4. Create API keys for bitwarden and save them as json on your disk. Encrypt this using gpg. These can always be rotated and created again.
5. Create a file that contains your master password. Encrypt this using gpg.
If you are on a clean install, you can download your private key from Bitwarden and run:
```
gpg --import /path/to/private/key
```
This should be the same key used for encrypting Bitwarden API keys and master password.
## Usage
`BW_SECRETS_PATH`: Local path to encrypted Bitwarden API keys (as json) are stored.
`BW_SECRETS_FOLDER`: Bitwarden folder (remote) where secrets are stored.
`BW_PWD_PATH`: Local path to encrypted Bitwarden master password.
```
make BW_SECRETS_PATH=/path/to/api_key.json.gpg BW_PWD_PATH=/path/to/password.gpg BW_SECRETS_FOLDER=ssh
```
You can choose to install a specific version of golang by providing `GO_VERSION`.
```
make BW_SECRETS_PATH=/path/to/api_key.json.gpg BW_PWD_PATH=/path/to/password.gpg BW_SECRETS_FOLDER=ssh GO_VERSION=1.23.3
```
## Breakdown
1. Installs libraries I commonly use. One of which is the `zsh` shell.
2. [oh-my-zsh](https://github.com/ohmyzsh/) - A plugin I have used for years.
3. Download my secrets from [BitWarden](https://bitwarden.com/).