Avoid top-level `with ...;` in lib/tests/modules/alias-with-priority-can-override.nix

Changed files
+10 -3
lib
+10 -3
lib/tests/modules/alias-with-priority-can-override.nix
···
{ config, lib, ... }:
-
with lib;
+
let
+
inherit (lib)
+
mkAliasOptionModule
+
mkForce
+
mkOption
+
types
+
;
+
in
{
options = {
# A simple boolean option that can be enabled or disabled.
-
enable = lib.mkOption {
+
enable = mkOption {
type = types.nullOr types.bool;
default = null;
example = true;
···
# should override the next import.
( { config, lib, ... }:
{
-
enableAlias = lib.mkForce false;
+
enableAlias = mkForce false;
}
)