Unverified Commit 57d91c53 authored by r-vdp's avatar r-vdp
Browse files

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
parent 5f833dd4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"}