Skip to content

Commit 5bd3cb1

Browse files
committed
modules/options: backport opts as an alias
1 parent b3ea525 commit 5bd3cb1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

modules/options.nix

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

22+
# Added to main 2024-03-29
23+
# Backported 2024-04-22
24+
imports = [
25+
(mkAliasOptionModule ["opts"] ["options"])
26+
];
27+
2228
config = {
2329
extraConfigLuaPre =
2430
optionalString (config.globals != {}) ''
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
opts-backport = {
3+
opts = {};
4+
};
5+
6+
example = {
7+
options = {};
8+
globals = {};
9+
};
10+
}

0 commit comments

Comments
 (0)