Files
Enzime 1dc516b673
buildbot/nix-eval Build done. (2 warnings)
buildbot/nix-build Build done.
macOS: actually manage OpenSSH host keys
2026-02-17 23:24:31 +01:00

23 lines
494 B
Nix

{ config, pkgs, ... }:
{
clan.core.vars.generators.openssh = {
files."ssh.id_ed25519" = { };
files."ssh.id_ed25519.pub".secret = false;
migrateFact = "openssh";
runtimeInputs = [
pkgs.coreutils
pkgs.openssh
];
script = ''
ssh-keygen -t ed25519 -N "" -f "$out"/ssh.id_ed25519
'';
};
services.openssh.hostKeys = [
{
type = "ed25519";
inherit (config.clan.core.vars.generators.openssh.files."ssh.id_ed25519") path;
}
];
}