nix-git/hosts/yodaHedgehog/ssh-client-root.nix

22 lines
493 B
Nix
Raw Normal View History

2023-11-18 13:01:18 +01:00
{ config, pkgs, ... }:
{
home-manager.users.root = { osConfig, config, pkgs, ... }: {
# SSH client configuration.
programs.ssh = {
enable = true;
userKnownHostsFile = "~/.ssh/known_hosts ${../../assets/ssh/known_hosts}";
matchBlocks = {
"rootNas" = {
2024-01-07 16:12:26 +01:00
hostname = "rootnas.p1st.de";
2023-11-18 13:01:18 +01:00
user = "root";
port = 2222;
compression = false;
identityFile = "~/.ssh/rootNas_ed25519";
};
};
};
};
}