22 lines
488 B
Nix
22 lines
488 B
Nix
{
|
|
user ? throw "user argument is required",
|
|
home ? throw "home argument is required",
|
|
}:
|
|
{ inputs, system, ... }:
|
|
let
|
|
selfPkgs = inputs.self.packages.${system};
|
|
in
|
|
{
|
|
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";
|
|
};
|
|
};
|
|
|
|
userKnownHostsFiles = with selfPkgs; [ ssh-known-hosts-sas-cldlgn ];
|
|
};
|
|
}
|