fix: added missing dotfiles and removed unnecessary files/packages
This commit is contained in:
@@ -1,43 +1,32 @@
|
||||
# Dotfiles (chezmoi)
|
||||
|
||||
# Dotfiles
|
||||
Dotfiles managed by [chezmoi](https://www.chezmoi.io/). The repo works on
|
||||
Arch and Ubuntu (not complete) and has three machine classes: **server**, **desktop**, and **laptop**.
|
||||
|
||||
|
||||
## First-time install on a new machine
|
||||
|
||||
### 1. Install prerequisites
|
||||
|
||||
```bash
|
||||
# Arch
|
||||
sudo pacman -S git curl age jq chezmoi
|
||||
|
||||
# Ubuntu
|
||||
sudo apt-get install -y git curl age jq
|
||||
# chezmoi: see https://www.chezmoi.io/install/
|
||||
sudo apt-get install git curl age jq chezmoi
|
||||
```
|
||||
|
||||
### 2. Provision the age key
|
||||
|
||||
### 2. Encryption key
|
||||
The age key needs to be placed at `~/.config/chezmoi/key`
|
||||
With following permissions
|
||||
```bash
|
||||
chmod 600 ~/.config/chezmoi/key
|
||||
```
|
||||
|
||||
### 3. Bootstrap
|
||||
|
||||
### 3. Init and Apply
|
||||
```bash
|
||||
chezmoi init --apply git@gitea.keuledrive.de:Keule2/Dotfiles.git
|
||||
chezmoi init --apply https://gitea.keuledrive.de/Keule2/Dotfiles
|
||||
```
|
||||
|
||||
Will ask:
|
||||
|
||||
- **Which system class is this machine?** — pick `server`, `desktop`, or `laptop`.
|
||||
- **EMAIL** — for git config.
|
||||
Will prompt some questions for template data.
|
||||
|
||||
## Usage
|
||||
|
||||
| Command | Effect |
|
||||
|---|---|
|
||||
| `chezmoi apply` | apply any local changes to dotfiles and run-once scripts |
|
||||
@@ -48,14 +37,8 @@ Will ask:
|
||||
| `chezmoi managed` | list files chezmoi manages |
|
||||
|
||||
## Changing the system class
|
||||
|
||||
Two ways:
|
||||
|
||||
Edit the config file
|
||||
```bash
|
||||
# Option A: re-prompt
|
||||
chezmoi init --apply --force --prompt
|
||||
|
||||
# Option B: edit the cached value
|
||||
$EDITOR ~/.config/chezmoi/chezmoi.toml # change [data].system
|
||||
chezmoi apply
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user