Make lib usable from flakes.
This commit is contained in:
parent
252346a8e8
commit
50fa2ef9ed
|
@ -3,5 +3,7 @@
|
|||
|
||||
outputs = { self, ... }: {
|
||||
overlay = import ./overlay.nix;
|
||||
|
||||
lib = import ./lib.nix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
ip = import ./lib/ip.nix { inherit pkgs; };
|
||||
dns = import ./lib/dns.nix { inherit pkgs; };
|
||||
passwd = import ./lib/passwd.nix { inherit pkgs; };
|
||||
lisp = import ./lib/lisp.nix { inherit pkgs; };
|
||||
network = import ./lib/network.nix { inherit pkgs; };
|
||||
fs = import ./lib/filesystem.nix { inherit pkgs; };
|
||||
}
|
|
@ -26,7 +26,7 @@ let
|
|||
|
||||
import-by-basename = path:
|
||||
mapAttrs (attr: attr-file: import attr-file)
|
||||
(basename-to-file path);
|
||||
(basename-to-file-map path);
|
||||
in {
|
||||
inherit basename-to-file-map import-by-basename;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue