flake.nix: add an overlay of the packages

This commit is contained in:
Gabriel Arazas 2022-07-14 08:18:34 +08:00
parent 6a0c115432
commit d599586053
2 changed files with 6 additions and 0 deletions

View File

@ -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]. * `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`]. 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]. * `devShells` from link:./shells/[my custom environments].
Similar to `homeManagerConfigurations`, you can easily use it outside of NixOS. Similar to `homeManagerConfigurations`, you can easily use it outside of NixOS.

View File

@ -270,6 +270,9 @@
# Extending home-manager with my custom modules, if anyone cares. # Extending home-manager with my custom modules, if anyone cares.
homeManagerModules = lib'.importModules (lib'.filesToAttr ./modules/home-manager); 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 # My custom packages, available in here as well. Though, I mainly support
# "x86_64-linux". I just want to try out supporting other systems. # "x86_64-linux". I just want to try out supporting other systems.
packages = forAllSystems (system: packages = forAllSystems (system: