We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
package
1 parent 4266dcf commit c31fee9Copy full SHA for c31fee9
1 file changed
nix/run.nix
@@ -14,17 +14,18 @@ let
14
[
15
../modules/all-modules.nix
16
{
17
- config = moduleOptions //
18
- {
19
- _module.args.pkgs = pkgs;
20
- _module.args.gitignore-nix-src = gitignore-nix-src;
21
- package = lib.mkDefault pre-commit;
22
- tools = lib.mkDefault (builtinStuff.tools // tools);
23
- } // (if isFlakes
24
- then { rootSrc = src; }
25
- else {
26
- rootSrc = gitignore-nix-src.lib.gitignoreSource src;
27
- });
+ config = lib.mkMerge [
+ moduleOptions
+ {
+ _module.args = { inherit pkgs gitignore-nix-src; };
+ package = lib.mkDefault pre-commit;
+ tools = lib.mkDefault (builtinStuff.tools // tools);
+ rootSrc =
+ if isFlakes
+ then src
+ else gitignore-nix-src.lib.gitignoreSource src;
+ }
28
+ ];
29
}
30
] ++ imports;
31
};
0 commit comments