mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
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:
parent
5f833dd447
commit
57d91c535b
1 changed files with 2 additions and 2 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue