dotfiles/lib/default.nix

13 lines
317 B
Nix
Raw Normal View History

2022-01-11 18:44:40 +01:00
{ inputs, lib, pkgs, ... }:
lib.extend (self: super:
2022-01-11 18:44:40 +01:00
let
inherit (lib) attrValues foldr;
inherit (modules) mapModules;
2022-01-11 18:44:40 +01:00
modules = import ./modules.nix { inherit lib; };
2022-01-11 18:44:40 +01:00
in {
_ = foldr (a: b: a // b) {} (attrValues (mapModules ./. (file: import file { inherit pkgs inputs; lib = self; })));
2022-01-11 18:44:40 +01:00
}
)