Add sops instructions
This commit is contained in:
parent
374ac7a749
commit
233810ebd7
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -13,6 +13,19 @@ This installs nixos on host `somehost`:
|
|||
nix-shell -p nixUnstable --run 'nixos-install --flake https://gitlab.jalr.de/jalr/nixos-configuration#somehost --no-channel-copy'
|
||||
```
|
||||
|
||||
### setting up sops
|
||||
Get the host key and convert it.
|
||||
```bash
|
||||
ssh-keyscan -t ed25519 $host | ssh-to-age
|
||||
```
|
||||
|
||||
Then add the key to `.sops.yaml`
|
||||
|
||||
If the key changed, you might want to run
|
||||
```bash
|
||||
sops updatekeys hosts/$host/secrets.yaml
|
||||
```
|
||||
|
||||
## nix repl
|
||||
start an interactive environment for evaluating Nix expressions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue