From 49908478f18f129605a29d11c0728f636bd908e7 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Wed, 26 Apr 2023 15:00:20 +0200 Subject: [PATCH] Propagate mylib to derivations --- flake.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 229b6774..8e86ce57 100644 --- a/flake.nix +++ b/flake.nix @@ -51,6 +51,12 @@ let 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 pkgs = import nixpkgs { inherit system; @@ -67,15 +73,9 @@ inputs.hyprpicker.overlays.default # 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. # It is a shorthand for recursive and allows to use the values defined in this set from its own scope. in rec {