diff --git a/flake/default.nix b/flake/default.nix index f3219e3..9134085 100644 --- a/flake/default.nix +++ b/flake/default.nix @@ -71,8 +71,6 @@ let }; systemIndependant = { - lib = import ./lib.nix inputs; - nixosConfigurations = import ./nixos.nix inputs; }; in @@ -80,6 +78,7 @@ flake-parts.lib.mkFlake { inherit inputs; } { systems = mySystems; imports = [ + ./lib.nix ./overlays.nix ]; diff --git a/flake/lib.nix b/flake/lib.nix index 083c56c..12e89c3 100644 --- a/flake/lib.nix +++ b/flake/lib.nix @@ -1,7 +1,11 @@ -{ self, nixpkgs, ... } @ inputs: +{ self, inputs, ... }: let + inherit (inputs) nixpkgs; + lib = nixpkgs.lib.extend (final: _: { my = import "${self}/lib" { inherit inputs; pkgs = nixpkgs; lib = final; }; }); in -lib +{ + flake.lib = lib; +}