From dd46445adc028cd627dcf4686e74f464fb4b7c2e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Mon, 11 Mar 2024 08:37:31 -0700 Subject: Avoid top-level `with ...;` in lib/tests/modules/alias-with-priority-can-override.nix --- lib/tests/modules/alias-with-priority-can-override.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/tests/modules/alias-with-priority-can-override.nix b/lib/tests/modules/alias-with-priority-can-override.nix index 9a18c9d9f613b..82a4c0df8cba2 100644 --- a/lib/tests/modules/alias-with-priority-can-override.nix +++ b/lib/tests/modules/alias-with-priority-can-override.nix @@ -6,12 +6,19 @@ { 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; @@ -41,7 +48,7 @@ with lib; # should override the next import. ( { config, lib, ... }: { - enableAlias = lib.mkForce false; + enableAlias = mkForce false; } ) -- cgit 1.4.1