flake: overlays: convert to 'flake-parts'

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

View file

@ -73,13 +73,15 @@ let
systemIndependant = {
lib = import ./lib.nix inputs;
overlays = import ./overlays.nix inputs;
nixosConfigurations = import ./nixos.nix inputs;
};
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = mySystems;
imports = [
./overlays.nix
];
flake = (eachMySystem systemDependant) // systemIndependant;
}

View file

@ -1,5 +1,4 @@
{ self, ... }:
let
default-overlays = import "${self}/overlays";
@ -13,4 +12,6 @@ let
};
};
in
default-overlays // additional-overlays
{
flake.overlays = default-overlays // additional-overlays;
}