From b559e046b76ebd27d156fa411b81931c5a332f55 Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 23 Jan 2025 00:09:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(modules/flake)=20move=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/flake/arguments.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/flake/arguments.nix b/modules/flake/arguments.nix index 24e4a91..5a2f886 100644 --- a/modules/flake/arguments.nix +++ b/modules/flake/arguments.nix @@ -5,7 +5,18 @@ ... }: let - # Recursive function to load all `default.nix` files and merge them into a single attr. set + ## Recursive loading of libraries, similar to snowfall lib. + ## Logical flow: read files => merge all file outputs to single attr. set + ## The directory in question is flake-root => lib + ## The directory structure is: + ## lib/ + ## => libname + ## => default.nix + ## => libname2 + ## => default.nix + ## + ## The structure of multiple libs is simply for organization and the attrs. of all default.nix files should still be merged + ## into a single set. loadLibs = directory: builtins.foldl' (acc: name: let @@ -25,18 +36,7 @@ in _module.args = { namespace = config.flake.namespace; - ## Recursive loading of libraries, similar to snowfall lib. - ## Logical flow: read files => merge all file outputs to single attr. set - ## The directory in question is flake-root => lib - ## The directory structure is: - ## lib/ - ## => libname - ## => default.nix - ## => libname2 - ## => default.nix - ## - ## The structure of multiple libs is simply for organization and the attrs. of all default.nix files should still be merged - ## into a single set. + puzzlelib = loadLibs ../../lib; # Initialize nixpkgs instance with custom overlays.