diff --git a/README.adoc b/README.adoc index 6bc068ee..a265aba0 100644 --- a/README.adoc +++ b/README.adoc @@ -60,6 +60,9 @@ As a helpful summary, here's what my flake should contain sorting from the most * `packages` contains link:./pkgs[my custom packages]. It supports the default list of systems as defined from link:https://github.com/numtide/flake-utils[`flake-utils`]. +* `overlays` contains the overlay for extending nixpkgs with my packages. +If you want to use my packages alongside the nixpkgs attribute then this is what you're looking for. + * `devShells` from link:./shells/[my custom environments]. Similar to `homeManagerConfigurations`, you can easily use it outside of NixOS. diff --git a/flake.nix b/flake.nix index 2a50ad4a..c650751b 100644 --- a/flake.nix +++ b/flake.nix @@ -270,6 +270,9 @@ # Extending home-manager with my custom modules, if anyone cares. homeManagerModules = lib'.importModules (lib'.filesToAttr ./modules/home-manager); + # In case somebody wants to use my stuff to be included in nixpkgs. + overlays.default = final: prev: import ./pkgs { pkgs = prev; }; + # My custom packages, available in here as well. Though, I mainly support # "x86_64-linux". I just want to try out supporting other systems. packages = forAllSystems (system: