From fa6dd68818a6b8c97db8dc8bb59353ff2014d61f Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 31 Jan 2024 11:41:34 +0800 Subject: [PATCH] docs: secrets --- secrets/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secrets/README.md b/secrets/README.md index edab334d..b920c6d9 100644 --- a/secrets/README.md +++ b/secrets/README.md @@ -63,13 +63,13 @@ let 3. Create and edit the secret file `xxx.age` interactively using the following command: ```shell -agenix -e ./xxx.age +sudo agenix -e ./xxx.age -i /etc/ssh/ssh_host_ed25519_key ``` Alternatively, you can encrypt an existing file to `xxx.age` using the following command: ```shell -cat /path/to/xxx | agenix -e ./xxx.age +cat xxx | sudo agenix -e ./xxx.age -i /etc/ssh/ssh_host_ed25519_key ``` `agenix` will encrypt the file with all the public keys we defined in `secrets.nix`,