mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
modules/context: add isTopLevel
option
This commit is contained in:
parent
cb413995e1
commit
c4fcbb0dcf
2 changed files with 14 additions and 0 deletions
|
@ -1,6 +1,16 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
isTopLevel = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether modules are being evaluated at the "top-level".
|
||||||
|
Should be false when evaluating nested submodules.
|
||||||
|
'';
|
||||||
|
internal = true;
|
||||||
|
visible = false;
|
||||||
|
};
|
||||||
isDocs = lib.mkOption {
|
isDocs = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|
|
@ -10,4 +10,8 @@
|
||||||
./output.nix
|
./output.nix
|
||||||
./test.nix
|
./test.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
isTopLevel = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue