refactor(ssh): centralize SSH config into ssh module
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# `colmena` wrapper script that opens a short-lived SSH master process for
|
||||
# `colmena` to use so it works with hardware-backed key touch+PIN. assumes
|
||||
# ControlPath ~/.ssh/socket-%r@%h:%p (see ./default.nix)
|
||||
# ControlPath ~/.ssh/control/%C (see ../ssh/default.nix)
|
||||
|
||||
selector=""
|
||||
want_on=0
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# `deploy` wrapper script that opens a short-lived SSH master process for
|
||||
# `deploy-rs` to use so it works with hardware-backed key touch+PIN. assumes
|
||||
# ControlPath ~/.ssh/socket-%r@%h:%p (see ./default.nix)
|
||||
# ControlPath ~/.ssh/control/%C (see ../ssh/default.nix)
|
||||
|
||||
# extract the target host from the `deploy-rs` flake target (e.g. `.#hecuba`)
|
||||
node=""
|
||||
|
||||
Reference in New Issue
Block a user