2024-06-09 15:03:26 +00:00
|
|
|
# The entrypoint for our custom library set. Take note, this is modularly
|
|
|
|
# included as part of the environment so we cannot have any functions or
|
|
|
|
# references that could make the evaluation go in an infinite recursion such as
|
|
|
|
# a function that generates a valid nixpkgs module.
|
2024-02-25 14:27:05 +00:00
|
|
|
{ pkgs }:
|
2021-12-06 09:55:40 +00:00
|
|
|
|
2024-02-25 14:27:05 +00:00
|
|
|
pkgs.lib.makeExtensible
|
2024-03-03 08:39:32 +00:00
|
|
|
(self:
|
|
|
|
let
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
callLib = file: import file { inherit pkgs lib self; };
|
|
|
|
in {
|
|
|
|
trivial = callLib ./trivial.nix;
|
2024-06-09 15:03:26 +00:00
|
|
|
data = callLib ./data.nix;
|
2024-03-03 08:39:32 +00:00
|
|
|
|
|
|
|
inherit (self.trivial) countAttrs getConfig getUser;
|
2024-06-09 15:03:26 +00:00
|
|
|
inherit (self.data) importYAML renderTeraTemplate;
|
2024-03-03 08:39:32 +00:00
|
|
|
})
|