server-configs/shared/applications/state/ssh.nix

11 lines
297 B
Nix
Raw Permalink Normal View History

{ config, ... }:
let
statePath = config.environment.persistence.root.persistentStoragePath + "/etc/ssh";
in {
services.openssh.hostKeys = [
{ path = statePath + "/ssh_host_rsa_key"; type = "rsa"; bits = 4096; }
{ path = statePath + "/ssh_host_ed25519_key"; type = "ed25519"; }
2024-08-08 12:16:04 +00:00
];
}