diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-24 10:53:41 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-24 10:53:41 -0600 |
| commit | 7a05f6634f2a8fd3340330eb6dc7d4b1890e8247 (patch) | |
| tree | fbfc8653c788ba333de1fc06260b489897b967f2 /secrets.nix | |
| parent | bede17058b1fa89773eeb81d1c260a40d1cdfa93 (diff) | |
ssh config
Diffstat (limited to 'secrets.nix')
| -rw-r--r-- | secrets.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/secrets.nix b/secrets.nix index d0a5ffb..2dae288 100644 --- a/secrets.nix +++ b/secrets.nix @@ -1,11 +1,8 @@ let - # host keys - mercury = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIQtMAgPdWwrOzlZT/lEIRQZ+ajhafG9AEJCrF2/bsmN"; - jupiter = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPB7feUHl5qoD5zF9AMOV2meViA+wZYdVvbVjPkggZf8"; - ganymede = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINlr+53UmlGVP1blkdNl6NFqn1w2umFJyjH1EVUPKIy9"; + inherit (builtins.fromTOML ./hosts.toml) mercury ganymede jupiter; in { - "caddy-env.age".publicKeys = [ganymede]; - "tsnsrv-authkey.age".publicKeys = [ganymede mercury]; - "williams-psk.age".publicKeys = [ganymede]; - "github-ssh-key.age".publicKeys = [mercury jupiter]; + "caddy-env.age".publicKeys = [ganymede.host_pubkey]; + "tsnsrv-authkey.age".publicKeys = [ganymede.host_pubkey mercury.host_pubkey]; + "williams-psk.age".publicKeys = [ganymede.host_pubkey]; + "github-ssh-key.age".publicKeys = [mercury.host_pubkey jupiter.host_pubkey]; } |
