bonfire/lib/default.nix
L-Nafaryus 92936676e8
Some checks failed
nix / check (push) Failing after 1m37s
nixosModules: new structure, new initialization process with path extraction and configuration
new: packages: bonfire-docs
flake: update inputs
astora: move from gnome to hyprland (incomplete)
2024-06-20 00:16:28 +05:00

18 lines
616 B
Nix

{ lib, ... }:
rec {
maintainers = import ./maintainers.nix;
moduleName = path: if builtins.baseNameOf (toString path) == "default.nix" then
builtins.baseNameOf (lib.removeSuffix "/default.nix" (toString path))
else
builtins.baseNameOf (lib.removeSuffix ".nix" (toString path));
moduleNames = pathList: map (path: moduleName path) pathList;
importModules = pathList: map (path: import path) pathList;
importNamedModules = pathList: lib.listToAttrs (
lib.zipListsWith (name: value: { inherit name value; }) (moduleNames pathList) (importModules pathList)
);
}