more scalable imports

that directory will only grow
This commit is contained in:
Valentin Gagarin 2024-11-13 15:24:41 +01:00 committed by Valentin Gagarin
parent 2d7cc5c4cb
commit 212b3647fd

View file

@ -3,15 +3,7 @@ let
inherit (config) pages; inherit (config) pages;
in in
{ {
imports = [ imports = with lib.fileset; toList (difference (fileFilter ({ hasExt, ... }: hasExt "nix") ./.) ./default.nix);
./grants.nix
./fediversity.nix
]
++
lib.fileset.toList ./partners
++
lib.fileset.toList ./news
;
pages.index = { pages.index = {
title = "Fediversity"; title = "Fediversity";