mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
19 lines
438 B
Nix
Executable File
19 lines
438 B
Nix
Executable File
{ lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) makeExtensible attrValues foldr;
|
|
inherit (modules) mapModules;
|
|
|
|
modules = import ./modules.nix {
|
|
inherit lib;
|
|
self.attrs = import ./attrs.nix { inherit lib; self = {}; };
|
|
};
|
|
|
|
mylib = makeExtensible (self:
|
|
with self; mapModules (toString ./.)
|
|
(file: import file { inherit self lib pkgs; }));
|
|
in
|
|
mylib.extend
|
|
(self: super:
|
|
foldr (a: b: a // b) {} (attrValues super))
|