From b28efc33ca46b032dfe0d080a72e39fb4908fec1 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 25 Aug 2025 23:01:03 -0400 Subject: [PATCH] Infini-DL360/ssh: reorder ssh extra config --- hosts/Infini-DL360/ssh.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/Infini-DL360/ssh.nix b/hosts/Infini-DL360/ssh.nix index ab9e55d..372c81a 100644 --- a/hosts/Infini-DL360/ssh.nix +++ b/hosts/Infini-DL360/ssh.nix @@ -1,4 +1,9 @@ -{ config, pkgs, ... }: +{ + config, + pkgs, + lib, + ... +}: let cfg = config.services.openssh; @@ -63,7 +68,7 @@ in # https://enotacoes.wordpress.com/2021/10/05/limiting-user-to-sshfs-or-sftp-of-one-directory-only/ # https://github.com/NixOS/nixpkgs/blob/d603719ec6e294f034936c0d0dc06f689d91b6c3/nixos/modules/services/networking/ssh/sshd.nix#L663 - services.openssh.extraConfig = '' + services.openssh.extraConfig = lib.mkBefore '' XAuthLocation ${pkgs.xorg.xauth}/bin/xauth Match user infinidoge