mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21: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
19
tests/modules/declare-bare-submodule-nested-option.nix
Normal file
19
tests/modules/declare-bare-submodule-nested-option.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) mkOption types;
|
||||
in
|
||||
{
|
||||
options.bare-submodule = mkOption {
|
||||
type = types.submoduleWith {
|
||||
shorthandOnlyDefinesConfig = config.shorthandOnlyDefinesConfig;
|
||||
modules = [
|
||||
{
|
||||
options.nested = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue