From df3e62c1c06ecdb05ed00c27ce16d5ecfef5bc6f Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Sat, 12 Oct 2024 01:49:26 +0200 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";