Update docs to include example of armored output

This commit is contained in:
Andrew Lubawy 2024-07-29 10:50:01 -07:00 committed by Ryan Mulligan
parent 92af581e8b
commit 01217f8b39
2 changed files with 8 additions and 0 deletions

View file

@ -332,6 +332,10 @@ e.g. inside your `flake.nix` file:
{
"secret1.age".publicKeys = [ user1 system1 ];
"secret2.age".publicKeys = users ++ systems;
"armored-secret.age" = {
publicKeys = [ user1 ];
armor = true;
};
}
```
These are the users and systems that will be able to decrypt the `.age` files later with their corresponding private keys.

View file

@ -25,6 +25,10 @@
{
"secret1.age".publicKeys = [ user1 system1 ];
"secret2.age".publicKeys = users ++ systems;
"armored-secret.age" = {
publicKeys = [ user1 ];
armor = true;
};
}
```
4. Edit secret files (these instructions assume your SSH private key is in ~/.ssh/):