2022-01-11 18:44:40 +01:00
|
|
|
{ inputs, lib, pkgs, ... }:
|
|
|
|
|
2022-09-05 18:16:09 +02:00
|
|
|
lib.extend (self: super:
|
2022-01-11 18:44:40 +01:00
|
|
|
let
|
2022-09-05 18:16:09 +02:00
|
|
|
inherit (lib) attrValues foldr;
|
|
|
|
inherit (modules) mapModules;
|
2022-10-18 19:54:57 +02:00
|
|
|
inherit (helpers) getSSH getWG;
|
2022-01-11 18:44:40 +01:00
|
|
|
|
2022-09-05 18:16:09 +02:00
|
|
|
modules = import ./modules.nix { inherit lib; };
|
2022-10-18 19:54:57 +02:00
|
|
|
helpers = import ./helpers.nix { inherit lib; };
|
2022-01-11 18:44:40 +01:00
|
|
|
in {
|
2022-10-18 19:54:57 +02:00
|
|
|
_ = foldr (a: b: a // b) {} (attrValues (mapModules ./. (file: import file {
|
|
|
|
inherit pkgs inputs;
|
|
|
|
lib = self;
|
|
|
|
})));
|
2022-01-11 18:44:40 +01:00
|
|
|
}
|
|
|
|
)
|