Skip to content

Commit

Permalink
modules/options: backport opts as an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Apr 22, 2024
1 parent b3ea525 commit 5bd3cb1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 != {}) ''
Expand Down
10 changes: 10 additions & 0 deletions tests/test-sources/modules/options.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
opts-backport = {
opts = {};
};

example = {
options = {};
globals = {};
};
}

0 comments on commit 5bd3cb1

Please sign in to comment.