From aeed45992b25409ec06bdcbabd97fc45ca080b5b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 8 Apr 2022 12:19:30 +0000 Subject: [PATCH] nixos/documentation: apply cleanSourceFilter This will prevent result symlinks, etc. from causing rebuilds of the manual. --- nixos/modules/misc/documentation.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix index 9304c307af2f..8e28d3336fa4 100644 --- a/nixos/modules/misc/documentation.nix +++ b/nixos/modules/misc/documentation.nix @@ -64,7 +64,8 @@ let filter = builtins.filterSource (n: t: - (t == "directory" -> baseNameOf n != "tests") + cleanSourceFilter n t + && (t == "directory" -> baseNameOf n != "tests") && (t == "file" -> hasSuffix ".nix" n) ); in