mirror of
https://github.com/NiklasGollenstede/nixos-installer.git
synced 2024-11-25 01:14:13 +01:00
5 lines
366 B
Nix
5 lines
366 B
Nix
dirname: inputs@{ nixpkgs, functions, ...}: let
|
|
categories = functions.lib.importAll inputs dirname;
|
|
self = (builtins.foldl' (a: b: a // (if builtins.isAttrs b then b else { })) { } (builtins.attrValues (builtins.removeAttrs categories [ "setup-scripts" ]))) // categories;
|
|
in self // { __internal__ = nixpkgs.lib // { self = self; fun = functions.lib; }; }
|