19 lines
433 B
Nix
19 lines
433 B
Nix
{
|
|
user ? throw "user argument is required",
|
|
home ? throw "home argument is required",
|
|
}:
|
|
{ ... }:
|
|
{
|
|
home-manager.users.${user}.programs.ssh.matchBlocks = {
|
|
"cldlgn.fyi.sas.com" = {
|
|
inherit user;
|
|
hostname = "cldlgn.fyi.sas.com";
|
|
identityFile = "${home}/.ssh/ssh_sas_ed25519_key";
|
|
extraOptions = {
|
|
StrictHostKeyChecking = "no";
|
|
UserKnownHostsFile = "/dev/null";
|
|
};
|
|
};
|
|
};
|
|
}
|