flake: lib: convert to 'flake-parts'

This commit is contained in:
Bruno BELANYI 2023-03-08 17:47:47 +00:00
parent a88c99b9d7
commit b2f3bc955c
2 changed files with 7 additions and 4 deletions

View File

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

View File

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