more scalable imports

that directory will only grow
This commit is contained in:
Valentin Gagarin 2024-10-12 01:49:26 +02:00
parent a007c5ff7d
commit 72fe2e9639

View file

@ -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";