mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-27 03:08:38 +02:00
feat: use a separate passphraseless ssh key for agenix
This commit is contained in:
@@ -50,9 +50,10 @@ Pretend you want to add a new secret file `xxx.age`, then:
|
||||
```
|
||||
3. or you can also encrypt an existing file to `xxx.age` by command:
|
||||
```shell
|
||||
agenix -e ./encrypt/xxx.age < /path/to/xxx
|
||||
cat /path/to/xxx | agenix -e ./encrypt/xxx.age
|
||||
```
|
||||
|
||||
the agenix use `~/.ssh/id_ed25519.pub` or `~/.ssh/id_rsa.pub` as encrypt key by default, you need to pass `--identity /path/to/key` to use a custom `/path/to/key.pub` for enctypt.
|
||||
|
||||
## Deploy Secrets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user