aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/secrets.org14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/secrets.org b/docs/secrets.org
index 04452dc..10d4e9b 100644
--- a/docs/secrets.org
+++ b/docs/secrets.org
@@ -2,14 +2,16 @@
** SSH keys
-Get the ssh key from 1password with the following command:
-#+begin_src sh
- op read "op://Private/nixos/private key?ssh-format=openssh" > ~/.ssh/nixos
- op read "op://Private/nixos/public key?ssh-format=openssh" > ~/.ssh/nixos.pub
+Start by synchronizing the SSH key by running `sync-ssh-key` in the repository.
+
+Then, to create or edit a secret:
+#+begin_src
+ cd (git rev-parse --show-toplevel)/secrets
+ agenix -i ~/.ssh/agenix -e users/fcuny/llm.age
#+end_src
-To create or edit a secret:
+And to rekey a secret:
#+begin_src
cd (git rev-parse --show-toplevel)/secrets
- agenix -i ~/.ssh/nixos -e users/fcuny/llm.age
+ agenix -i ~/.ssh/agenix -r
#+end_src