From 01217f8b39e52ac7a7c5de569b7e176a4b59bca1 Mon Sep 17 00:00:00 2001 From: Andrew Lubawy Date: Mon, 29 Jul 2024 10:50:01 -0700 Subject: [PATCH] Update docs to include example of armored output --- README.md | 4 ++++ doc/tutorial.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 6e49cc3..1a99029 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/doc/tutorial.md b/doc/tutorial.md index 8344121..751afa9 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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/):