ssh: include host-local config file if available

This commit is contained in:
Daniel Lundin 2024-08-21 11:31:00 +02:00
parent 3730825295
commit 086298efa3
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { config, pkgs, ... }:
let let
realName = "Daniel Lundin"; realName = "Daniel Lundin";
email = "dln@arity.se"; email = "dln@arity.se";
@ -138,6 +138,10 @@ in
}; };
}; };
programs.ssh.extraConfig = ''
Include ${config.home.homeDirectory}/.ssh/config_local
'';
programs.ssh.matchBlocks = { programs.ssh.matchBlocks = {
dev = { dev = {
hostname = "10.1.100.16"; hostname = "10.1.100.16";