fix: resolve deprecated ssh nix home manager option

This commit is contained in:
2026-05-22 17:46:48 +02:00
parent d7e4574c9e
commit c62b11100c

View File

@@ -24,24 +24,23 @@ in
enable = true;
enableDefaultConfig = false;
matchBlocks =
settings =
lib.genAttrs hostsWithKeys (
hostname:
let
meta = myUtils.hostMeta (hostDir + "/${hostname}");
in
{
host = hostname;
user = meta.deployment.targetUser;
User = meta.deployment.targetUser;
}
// lib.optionalAttrs (meta.deployment.targetHost != "") {
hostname = meta.deployment.targetHost;
HostName = meta.deployment.targetHost;
}
)
// {
"*" = {
addKeysToAgent = "yes";
forwardAgent = false;
AddKeysToAgent = "yes";
ForwardAgent = false;
};
};
};