From 212b3647fd0ce49629345e83ef7ec1fe80d0895a 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 --- website/content/default.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/website/content/default.nix b/website/content/default.nix index b26db34..a53fdba 100644 --- a/website/content/default.nix +++ b/website/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";