core/lib/tests/modules/declare-bare-submodule.nix

17 lines
422 B
Nix
Raw Normal View History

2024-05-01 22:14:04 +00:00
{ config, lib, ... }:
let
inherit (lib) mkOption types;
in
{
options.bare-submodule = mkOption {
type = types.submoduleWith {
modules = [ ];
shorthandOnlyDefinesConfig = config.shorthandOnlyDefinesConfig;
};
2024-06-30 08:16:52 +00:00
default = { };
2024-05-01 22:14:04 +00:00
};
# config-dependent options: won't recommend, but useful for making this test parameterized
2024-06-30 08:16:52 +00:00
options.shorthandOnlyDefinesConfig = mkOption { default = false; };
2024-05-01 22:14:04 +00:00
}