1

Propagate mylib to derivations

This commit is contained in:
2023-04-26 15:00:20 +02:00
parent 2df7e2a264
commit 2b9ef1eb10

View File

@ -51,6 +51,12 @@
let let
system = "x86_64-linux"; system = "x86_64-linux";
# I don't know how to extend the nixpkgs.lib directly so just propagate mylib to the config modules as argument
mylib = import ./lib {
inherit inputs pkgs;
lib = nixpkgs.lib;
};
# Set overlays + unfree globally # Set overlays + unfree globally
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
@ -67,15 +73,9 @@
inputs.hyprpicker.overlays.default inputs.hyprpicker.overlays.default
# All my own overlays # All my own overlays
(import ./overlays {inherit nixpkgs inputs;}) (import ./overlays {inherit nixpkgs inputs mylib;})
]; ];
}; };
# I don't know how to extend the nixpkgs.lib directly so just propagate mylib to the config modules as argument
mylib = import ./lib {
inherit inputs pkgs;
lib = nixpkgs.lib;
};
# The rec expression turns a basic set into a set where self-referencing is possible. # The rec expression turns a basic set into a set where self-referencing is possible.
# It is a shorthand for recursive and allows to use the values defined in this set from its own scope. # It is a shorthand for recursive and allows to use the values defined in this set from its own scope.
in rec { in rec {