21 lines
463 B
Nix
21 lines
463 B
Nix
{
|
|
flake.modules.homeManager.ssh-client =
|
|
{ config, ... }:
|
|
{
|
|
programs.ssh = {
|
|
enable = true;
|
|
enableDefaultConfig = false;
|
|
includes = [
|
|
config.sops.templates."ssh-config-orion".path
|
|
];
|
|
};
|
|
|
|
sops.secrets."orion-ip" = { };
|
|
sops.templates."ssh-config-orion".content = ''
|
|
Host orion
|
|
HostName ${config.sops.placeholder."orion-ip"}
|
|
ForwardAgent yes
|
|
'';
|
|
};
|
|
}
|