From c9abe13377abc68b859898290c29d64ffa85218b Mon Sep 17 00:00:00 2001 From: valentin gagarin Date: Wed, 13 Nov 2024 15:24:41 +0100 Subject: [PATCH] more scalable imports that directory will only grow --- content/default.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/content/default.nix b/content/default.nix index b26db344..a53fdbaa 100644 --- a/content/default.nix +++ b/content/default.nix @@ -3,15 +3,7 @@ let inherit (config) pages; in { - imports = [ - ./grants.nix - ./fediversity.nix - ] - ++ - lib.fileset.toList ./partners - ++ - lib.fileset.toList ./news - ; + imports = with lib.fileset; toList (difference (fileFilter ({ hasExt, ... }: hasExt "nix") ./.) ./default.nix); pages.index = { title = "Fediversity";