nix-config/flake/lib.nix

12 lines
208 B
Nix
Raw Normal View History

2023-03-08 18:47:47 +01:00
{ self, inputs, ... }:
2023-03-07 11:44:29 +01:00
let
2023-03-08 18:47:47 +01:00
inherit (inputs) nixpkgs;
2023-03-07 11:44:29 +01:00
lib = nixpkgs.lib.extend (final: _: {
my = import "${self}/lib" { inherit inputs; pkgs = nixpkgs; lib = final; };
});
in
2023-03-08 18:47:47 +01:00
{
flake.lib = lib;
}