mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
Avoid top-level with ...;
in lib/tests/modules/alias-with-priority-can-override.nix
This commit is contained in:
parent
0c392a47e1
commit
dd46445adc
|
@ -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;
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue