Files

Secrets

Add a new machine

  1. Obtain an age identity
nix run nixpkgs#ssh-to-age -- \
  -private-key \
  -i /etc/ssh/ssh_host_ed25519_key \
  -o $HOME/.config/sops/age/keys.txt
  1. Obtain age recipient for the machine
cat /etc/ssh/ssh_host_ed25519_key.pub | nix run nixpkgs#ssh-to-age
  1. Paste obtained key into .sops.yaml
  2. Re-encrypt old files
sops updatekeys secrets/default.sops.yaml