diff options
author | Philip Taron <philip.taron@gmail.com> | 2024-03-11 08:37:31 -0700 |
---|---|---|
committer | Philip Taron <philip.taron@gmail.com> | 2024-03-11 08:37:31 -0700 |
commit | dd46445adc028cd627dcf4686e74f464fb4b7c2e (patch) | |
tree | 0a9e43ef9a9a216090adcd1d89ee2c8b294c06ac /lib/tests | |
parent | 0c392a47e1b59913332329d50f0b79b223c2ab92 (diff) |
Avoid top-level `with ...;` in lib/tests/modules/alias-with-priority-can-override.nix
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/modules/alias-with-priority-can-override.nix | 13 |
1 files changed, 10 insertions, 3 deletions
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; } ) |