mirror of
https://github.com/NixOS/nix
synced 2025-07-04 19:41:48 +02:00
GC root for fetched nixpkgs/lib content
This commit is contained in:
commit
63e0b5d081
175 changed files with 18510 additions and 0 deletions
28
tests/modules/declare-submodule-via-evalModules.nix
Normal file
28
tests/modules/declare-submodule-via-evalModules.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, ... }: {
|
||||
options.submodule = lib.mkOption {
|
||||
inherit (lib.evalModules {
|
||||
modules = [
|
||||
{
|
||||
options.inner = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
}) type;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.submodule = lib.mkMerge [
|
||||
({ lib, ... }: {
|
||||
options.outer = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
})
|
||||
{
|
||||
inner = true;
|
||||
outer = true;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue