summaryrefslogtreecommitdiffstats
path: root/README.md
blob: d482696a85f7dae9b74c8a819faaf11b6246a0bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# RC: [RUNCOM](https://en.wikipedia.org/wiki/RUNCOM)

## Installation

### Prerequisites

- stow
- homebrew (on MacOS)

### Essentials

```bash
git clone https://git.sr.ht/~a14m/.rc ~/.rc
~/.rc/install.sh
```

Extra configurations for different distro families:

- [MacOS](./MacOS.md)<br>
- [Debian](./Debian.md)<br>

### Complementary tools

#### Setup password store

```bash
git clone [email protected]:a14m/.pass ~/.password-store
```

#### [vim](https://git.sr.ht/~a14m/.vim)

```bash
git clone [email protected]:~a14m/.vim ~/.vim
ln -sf ~/.vim/.vimrc ~/.vimrc
vim +PlugInstall
```

#### Git Crypt

```bash
brew install git-crypt
cd ~/.rc
git-crypt unlock
```

### GPG

To rotate the GPG keys, after generating and backing up.

- Get the new gpg key ID with `gpg --list-keys <GPG_KEY_ID>`.
- Get the new gpg key grip with `gpg --list-keys --with-keygrip <GPG_KEY_ID>`
- Update the `.gitconfig` signing key: <GPG_KEY_ID>
- Update the GPG key in the password store `.gpg-id` file with <GPG_KEY_ID>
- Update the sshcontrol config file with the authentication key of <GPG_KEY_GRIP>
- Update git-crypt with the new key: `git-crypt add-gpg-user <GPG_KEY_ID>`