modules/options: backport opts as an alias

This commit is contained in:
Matt Sturgeon 2024-04-22 13:51:06 +01:00
parent b3ea5256e0
commit 5bd3cb1ef6
2 changed files with 16 additions and 0 deletions

View file

@ -19,6 +19,12 @@ with lib; {
};
};
# Added to main 2024-03-29
# Backported 2024-04-22
imports = [
(mkAliasOptionModule ["opts"] ["options"])
];
config = {
extraConfigLuaPre =
optionalString (config.globals != {}) ''

View file

@ -0,0 +1,10 @@
{
opts-backport = {
opts = {};
};
example = {
options = {};
globals = {};
};
}