flake: move 'overlays' to 'flake/'

This commit is contained in:
Bruno BELANYI 2023-03-07 10:36:27 +00:00
parent b9083244ed
commit 819ce1a320
2 changed files with 17 additions and 6 deletions

View file

@ -199,12 +199,7 @@
}) // { }) // {
inherit lib; inherit lib;
overlays = import ./overlays // { overlays = import ./flake/overlays.nix inputs;
lib = final: prev: { inherit lib; };
pkgs = final: prev: {
ambroisie = prev.recurseIntoAttrs (import ./pkgs { pkgs = prev; });
};
};
nixosConfigurations = lib.mapAttrs buildHost { nixosConfigurations = lib.mapAttrs buildHost {
aramis = "x86_64-linux"; aramis = "x86_64-linux";

16
flake/overlays.nix Normal file
View file

@ -0,0 +1,16 @@
{ self, ... }:
let
default-overlays = import "${self}/overlays";
additional-overlays = {
# Expose my expanded library
lib = final: prev: { inherit (self) lib; };
# Expose my custom packages
pkgs = final: prev: {
ambroisie = prev.recurseIntoAttrs (import "${self}/pkgs" { pkgs = prev; });
};
};
in
default-overlays // additional-overlays