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