Make lib usable from flakes.

This commit is contained in:
niten 2021-11-22 06:39:38 -08:00
parent 252346a8e8
commit 50fa2ef9ed
3 changed files with 13 additions and 1 deletions

View File

@ -3,5 +3,7 @@
outputs = { self, ... }: {
overlay = import ./overlay.nix;
lib = import ./lib.nix;
};
}

10
lib.nix Normal file
View File

@ -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; };
}

View File

@ -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;
}