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 = { systemIndependant = {
lib = import ./lib.nix inputs;
nixosConfigurations = import ./nixos.nix inputs; nixosConfigurations = import ./nixos.nix inputs;
}; };
in in
@ -80,6 +78,7 @@ flake-parts.lib.mkFlake { inherit inputs; } {
systems = mySystems; systems = mySystems;
imports = [ imports = [
./lib.nix
./overlays.nix ./overlays.nix
]; ];

View file

@ -1,7 +1,11 @@
{ self, nixpkgs, ... } @ inputs: { self, inputs, ... }:
let let
inherit (inputs) nixpkgs;
lib = nixpkgs.lib.extend (final: _: { lib = nixpkgs.lib.extend (final: _: {
my = import "${self}/lib" { inherit inputs; pkgs = nixpkgs; lib = final; }; my = import "${self}/lib" { inherit inputs; pkgs = nixpkgs; lib = final; };
}); });
in in
lib {
flake.lib = lib;
}