Skip to content

Commit

Permalink
tree-wide: defaultOverridePriority -> priorities.baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu committed Nov 4, 2024
1 parent e82eed7 commit 04f60e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/tests/modules/test-mergeAttrDefinitionsWithPrio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ in
};
config.result =
assert defs.default.highestPrio == (lib.mkDefault (assertLazy __curPos)).priority;
assert defs.regular.highestPrio == lib.modules.defaultOverridePriority;
assert defs.regular.highestPrio == lib.modules.priorities.baseline;
assert defs.force.highestPrio == (lib.mkForce (assertLazy __curPos)).priority;
true;
}
2 changes: 1 addition & 1 deletion nixos/lib/testing/driver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ in
_module.args = {
hostPkgs =
# Comment is in nixos/modules/misc/nixpkgs.nix
lib.mkOverride lib.modules.defaultOverridePriority
lib.mkOverride lib.modules.priorities.baseline
config.hostPkgs.__splicedPackages;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/misc/nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ in
# which is somewhat costly for Nixpkgs. With an explicit priority, we only
# evaluate the wrapper to find out that the priority is lower, and then we
# don't need to evaluate `finalPkgs`.
lib.mkOverride lib.modules.defaultOverridePriority
lib.mkOverride lib.modules.priorities.baseline
finalPkgs.__splicedPackages;
};

Expand All @@ -346,7 +346,7 @@ in
# We set it with default priority and it can not be merged, so if the
# pkgs module argument has that priority, it's from us.
(lib.modules.mergeAttrDefinitionsWithPrio options._module.args).pkgs.highestPrio
== lib.modules.defaultOverridePriority
== lib.modules.priorities.baseline
# Although, if nixpkgs.pkgs is set, we did forward it, but we did not construct it.
&& !opt.pkgs.isDefined;
in [
Expand Down

0 comments on commit 04f60e7

Please sign in to comment.