aboutsummaryrefslogtreecommitdiff
path: root/docs/secrets.org
blob: 04452dcb218d4126a181ac575a091631767e6e65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
* Secrets

** 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
#+end_src

To create or edit a secret:
#+begin_src
  cd (git rev-parse --show-toplevel)/secrets
  agenix -i ~/.ssh/nixos -e users/fcuny/llm.age
#+end_src