nixos/ssh: add the systemd-ssh-proxy include directive to the Host * block

Otherwise, then any Host or Match block in the extraConfig will absorb the include
This commit is contained in:
r-vdp 2025-05-10 20:49:57 +02:00
parent 5f833dd447
commit 57d91c535b
No known key found for this signature in database

View file

@ -341,13 +341,13 @@ in
# Custom options from `extraConfig`, to override generated options
${cfg.extraConfig}
# Generated options from other settings
Host *
${lib.optionalString cfg.systemd-ssh-proxy.enable ''
# See systemd-ssh-proxy(1)
Include ${config.systemd.package}/lib/systemd/ssh_config.d/20-systemd-ssh-proxy.conf
''}
# Generated options from other settings
Host *
GlobalKnownHostsFile ${builtins.concatStringsSep " " knownHostsFiles}
${lib.optionalString (!config.networking.enableIPv6) "AddressFamily inet"}