From ef4ab8eaaa66e88acce71c8ce670e1150a974985 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Mon, 1 Jun 2026 12:17:23 -0700 Subject: [PATCH] nixos/sshd: accept path-typed options When the 'banner' option was removed in favour of settings.Banner, it was made a path-typed option, but the current mkValueString doesn't accept path-typed values so assigning a file to this option results in: `error: unsupported type path: ` By adding the appropriate handling for mkValueString, this works as expected. --- nixos/modules/services/networking/ssh/sshd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index 36825e1d508c..a948cd02bc4f 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -26,6 +26,8 @@ let toString v else if lib.isString v then v + else if lib.isPath v then + v else if true == v then "yes" else if false == v then