From 6bf6d21392b879f1f4be1e1007cd046107e1087c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 17 Apr 2021 11:39:31 +0000 Subject: [PATCH] flake: inject extended 'lib' into NixOS config Somehow it works just fine in my `home-manager` configuration, I assume it is using the system `nixpkgs` and its `lib` attribute that I extended. Whereas the NixOS system must be injected with the extended one intentionally. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 6f1c645..8f74f46 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,10 @@ modules = defaultModules ++ [ (./. + "/${name}.nix") ]; + specialArgs = { + # Use my extended lib in NixOS configuration + inherit lib; + }; }; in eachDefaultSystem