Skip to content

Commit 9c3892a

Browse files
committed
backport opts rename as an alias
1 parent b3ea525 commit 9c3892a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

modules/options.nix

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ with lib; {
1919
};
2020
};
2121

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+
2233
config = {
2334
extraConfigLuaPre =
2435
optionalString (config.globals != {}) ''
+13
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)