We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
opts
1 parent b3ea525 commit 285ab21Copy full SHA for 285ab21
modules/options.nix
@@ -19,6 +19,17 @@ with lib; {
19
};
20
21
22
+ # Added to main 2024-03-29
23
+ # Backported 2024-04-22
24
+ imports =
25
+ mapAttrsToList
26
+ (alias: to: mkAliasOptionModule [alias] [to])
27
+ {
28
+ opts = "options";
29
+ globalOpts = "globals";
30
+ localOpts = "localOptions";
31
+ };
32
+
33
config = {
34
extraConfigLuaPre =
35
optionalString (config.globals != {}) ''
tests/test-sources/modules/options.nix
@@ -0,0 +1,13 @@
1
+{
2
+ opts-backport = {
3
+ opts = {};
4
+ globalOpts = {};
5
+ localOpts = {};
6
7
8
+ example = {
9
+ options = {};
10
+ globals = {};
11
+ localOptions = {};
12
13
+}
0 commit comments