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.
This commit is contained in:
Bruno BELANYI 2021-04-17 11:39:31 +00:00
parent ee1b31954a
commit 6bf6d21392

View file

@ -39,6 +39,10 @@
modules = defaultModules ++ [ modules = defaultModules ++ [
(./. + "/${name}.nix") (./. + "/${name}.nix")
]; ];
specialArgs = {
# Use my extended lib in NixOS configuration
inherit lib;
};
}; };
in in
eachDefaultSystem eachDefaultSystem