about summary refs log tree commit diff
path: root/lib/tests/modules/alias-with-priority-can-override.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-02-23 16:43:05 +0100
committerGitHub <noreply@github.com>2019-02-23 16:43:05 +0100
commitd3216be6d9dc75bef896c5ef63e846a9bc0b01f4 (patch)
tree7c8686a8a14d4bf245c6d603c2c4ab003643a624 /lib/tests/modules/alias-with-priority-can-override.nix
parent55adb547b4f1b831baf60c12be03551050d5cca0 (diff)
parentdcbd13631964cc2977df7faead75deb3bee749a8 (diff)
Merge pull request #54528 from cdepillabout/module-alias-uses-priority
lib/modules: Change mkAliasOptionModule to use the priority for the alias
Diffstat (limited to 'lib/tests/modules/alias-with-priority-can-override.nix')
-rw-r--r--lib/tests/modules/alias-with-priority-can-override.nix9
1 files changed, 6 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 a6b26895f3a8d..9a18c9d9f613b 100644
--- a/lib/tests/modules/alias-with-priority-can-override.nix
+++ b/lib/tests/modules/alias-with-priority-can-override.nix
@@ -1,5 +1,8 @@
 # This is a test to show that mkAliasOptionModule sets the priority correctly
 # for aliased options.
+#
+# This test shows that an alias with a high priority is able to override
+# a non-aliased option.
 
 { config, lib, ... }:
 
@@ -32,10 +35,10 @@ with lib;
 
   imports = [
     # Create an alias for the "enable" option.
-    (mkAliasOptionModuleWithPriority [ "enableAlias" ] [ "enable" ])
+    (mkAliasOptionModule [ "enableAlias" ] [ "enable" ])
 
-    # Disable the aliased option, but with a default (low) priority so it
-    # should be able to be overridden by the next import.
+    # Disable the aliased option with a high priority so it
+    # should override the next import.
     ( { config, lib, ... }:
       {
         enableAlias = lib.mkForce false;