Update docs to include example of armored output

This commit is contained in:
Andrew Lubawy 2024-07-29 10:50:01 -07:00
parent af954310f1
commit 7133e545ff
No known key found for this signature in database
GPG key ID: 8E98BAE1F49C2709
2 changed files with 16 additions and 8 deletions

View file

@ -266,6 +266,10 @@ e.g. inside your `flake.nix` file:
{ {
"secret1.age".publicKeys = [ user1 system1 ]; "secret1.age".publicKeys = [ user1 system1 ];
"secret2.age".publicKeys = users ++ systems; "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. 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 ]; "secret1.age".publicKeys = [ user1 system1 ];
"secret2.age".publicKeys = users ++ systems; "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/): 4. Edit secret files (these instructions assume your SSH private key is in ~/.ssh/):