25 lines
975 B
Nix
25 lines
975 B
Nix
# This file is NOT imported into the NixOS configuration. It is only used for
|
|
# the agenix CLI tool to know which public keys to use for encryption. See the
|
|
# README for more information.
|
|
# https://github.com/ryantm/agenix
|
|
|
|
let
|
|
# Get a system's public key using:
|
|
# > cat /etc/ssh/ssh_host_ed25519_key.pub
|
|
# If you change or add a key, all secrets need to be `agenix --rekey`'ed.
|
|
alpha = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0OmbNKuMGIOEUxqNDgUN9lz1LSw7xvZ6Tu/BkQyRoy root@alpha";
|
|
mu = "todo";
|
|
omega = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvFN4vnqPX31+4/ZJxOJ7/bSUEu2xB6ovezPQjLm13H root@omega";
|
|
tor = "todo";
|
|
zeta = "todo";
|
|
# Recovery and management key from Keepass. Used like so:
|
|
# > set AGE_KEY_FILE (mktemp); read -s > $AGE_KEY_FILE
|
|
# > agenix -i $AGE_KEY_FILE -e foo.age
|
|
recovery = "age1rd6hhd724s3r9xe4gfuy38rl0xfu8c7pkuefsrdwqfcknujzecyqz7ldyj";
|
|
|
|
all = [ alpha omega recovery ];
|
|
in
|
|
{
|
|
"users-hashed-password-file.age".publicKeys = all;
|
|
}
|