dotfiles/lib/default.nix

18 lines
422 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-10-18 19:54:57 +02:00
inherit (helpers) getSSH getWG;
2022-01-11 18:44:40 +01: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
}
)