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 = { systemIndependant = {
lib = import ./lib.nix inputs; lib = import ./lib.nix inputs;
overlays = import ./overlays.nix inputs;
nixosConfigurations = import ./nixos.nix inputs; nixosConfigurations = import ./nixos.nix inputs;
}; };
in in
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
systems = mySystems; systems = mySystems;
imports = [
./overlays.nix
];
flake = (eachMySystem systemDependant) // systemIndependant; flake = (eachMySystem systemDependant) // systemIndependant;
} }

View file

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