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 9c3892aCopy full SHA for 9c3892a
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
+ (current: new: mkAliasOptionModule [new] [current])
27
+ {
28
+ options = "opts";
29
+ globalOptions = "globalOpts";
30
+ localOptions = "localOpts";
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
+ globalOptions = {};
11
+ localOptions = {};
12
13
+}
0 commit comments