1

add overlays/default.nix

This commit is contained in:
2022-08-09 22:22:37 +02:00
parent cf3ac4e613
commit 3e5ff441d3

View File

@ -2,7 +2,12 @@
let let
# Taken from https://github.com/Misterio77/nix-config/blob/main/overlay/default.nix # Taken from https://github.com/Misterio77/nix-config/blob/main/overlay/default.nix
# By specifying this we can just add our derivation to derivations/default.nix and it will land here
additions = final: prev: import ../derivations { pkgs = final; }; additions = final: prev: import ../derivations { pkgs = final; };
in in
# TODO: I have absolutely no clue what happens here lol
# Basically we need some sort of list of all overlays that can be imported from the flake
# in the overlays = [ ... ] section of the pkgs = import nixpkgs { ... } configuration
# Somehow this library function turns additions into that
nixpkgs.lib.composeManyExtensions [ additions ] nixpkgs.lib.composeManyExtensions [ additions ]