machines/nix/systems/aarch64-linux/security.kaareskovgaard.net/post/openbao/ssh-host.nix
Kaare Hoff Skovgaard 8cd2737aca
Some checks failed
/ rust-packages (push) Successful in 2m45s
/ systems (push) Failing after 1m40s
/ terraform-providers (push) Successful in 4m2s
/ dev-shell (push) Successful in 54s
/ check (push) Failing after 1m31s
Begin moving openbao and authentik server to new setup
2025-07-14 23:34:02 +02:00

22 lines
619 B
Nix

{
khscodes.services.openssh.hostCertificate.path = "\${ vault_mount.ssh-host.path }";
khscodes.infrastructure.provisioning.post.modules = [
(
{ config, ... }:
{
khscodes.vault.mount.ssh-host = {
type = "ssh";
path = "ssh-host";
default_lease_ttl_seconds = 24 * 60 * 60;
max_lease_ttl_seconds = 24 * 60 * 60;
};
resource.vault_ssh_secret_backend_ca.ssh-host = {
backend = config.khscodes.vault.output.mount.ssh-host.path;
generate_signing_key = true;
key_type = "ed25519";
};
}
)
];
}