refactor(ssh): centralize SSH config into ssh module
This commit is contained in:
@@ -61,16 +61,5 @@ in
|
||||
colmenaWrapped
|
||||
deployRsWrapped
|
||||
];
|
||||
programs.ssh.settings = lib.genAttrs hostsWithKeys (
|
||||
hostname:
|
||||
let
|
||||
meta = myUtils.hostMeta (hostDir + "/${hostname}");
|
||||
in
|
||||
{
|
||||
User = meta.host.username;
|
||||
HostName = hostname;
|
||||
ControlPath = "~/.ssh/socket-%r@%h:%p";
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user