dotfiles/nix-conf/home-manager/base/mkModuleArgs.nix

21 lines
545 B
Nix
Raw Normal View History

2023-06-18 00:46:31 +00:00
# Turns given inputs into the standardized shape of the inputs to configure
# custom base modules in this directory.
2023-06-18 00:46:31 +00:00
{
pkgs,
lib ? pkgs.lib,
...
} @ inputs: let
recursiveUpdate = lib.recursiveUpdate;
2023-06-18 00:46:31 +00:00
_lib = recursiveUpdate lib (import ../../lib {inherit pkgs lib;});
proj_root = builtins.toString ./../../..;
in
2023-06-18 00:46:31 +00:00
# TODO: Unpollute inputs
recursiveUpdate inputs {
proj_root = {
path = proj_root;
config.path = "${proj_root}/native_configs";
scripts.path = "${proj_root}/scripts";
};
myLib = _lib;
}