mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-02-07 06:19:02 +00:00
wrapper-manager-fds/lib: update module evaluation function
Now we set `pkgs` modularly allowing users to set their own nixpkgs instance for whatever reason. Also, we removed `modulesPath` since it is pointless and I would like to keep wrapper-manager-fds to be pretty simple to maintain at its core.
This commit is contained in:
parent
b6b9be6648
commit
62cc18faf5
16
lib/env.nix
16
lib/env.nix
@ -13,10 +13,16 @@ rec {
|
||||
specialArgs ? { },
|
||||
}:
|
||||
lib.evalModules {
|
||||
modules = [ ../modules/wrapper-manager ] ++ modules;
|
||||
specialArgs = specialArgs // {
|
||||
inherit pkgs;
|
||||
modulesPath = builtins.toString ../modules/wrapper-manager;
|
||||
};
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
../modules/wrapper-manager
|
||||
|
||||
# Setting pkgs modularly. This would make setting up wrapper-manager
|
||||
# with different nixpkgs instances possible but it isn't something that
|
||||
# is explicitly supported.
|
||||
({ lib, ... }: {
|
||||
config._module.args.pkgs = lib.mkDefault pkgs;
|
||||
})
|
||||
] ++ modules;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user