{ lib, ... }:
let
inherit (lib) mkOption types;
moduleWithoutKey = {
config = {
raw = "pear";
};
moduleWithKey = {
key = __curPos.file + "#moduleWithKey";
decl = {
options = {
raw = mkOption {
type = types.lines;
in
{
once = mkOption {
type = types.submodule {
imports = [
decl
moduleWithKey
];
default = { };
twice = mkOption {
moduleWithoutKey
}