refactor pkgs/lib -> lib, kw.fw -> network.firewall, ...

This commit is contained in:
kat witch 2021-08-13 21:17:56 +01:00
parent ce5c5f7f7c
commit 0e126e2a2e
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
32 changed files with 35 additions and 35 deletions

20
lib/default.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs ? import <nixpkgs> { }
, lib ? pkgs.lib
# for internal use...
, super ? if !isOverlayLib then lib else { }
, self ? if isOverlayLib then lib else { }
, before ? if !isOverlayLib then lib else { }
, isOverlayLib ? false
}@args: let
colorHelpers = import ./color-helpers.nix { inherit lib; };
lib = before // katlib // self;
katlib = with before; with katlib; with self;
{
inherit (colorHelpers) hextorgba;
hostImport = import ./host-import.nix { inherit lib; };
virtualHostGen = import ./virtual-host-gen.nix { inherit lib; };
domainMerge = import ./domain-merge.nix { inherit lib; };
modListMerge = import ./intersect-merge.nix { inherit lib; };
modList = import ./module-list.nix { inherit lib; };
folderList = import ./folder-list.nix { inherit lib; };
}; in katlib