lib.modules: Make option injection work when shorthandOnlyDefinesConfig

This commit is contained in:
Robert Hensing 2022-02-28 22:57:03 +01:00
parent 11537c9c02
commit 8baea8b82c
6 changed files with 17 additions and 3 deletions

View file

@ -1,10 +1,11 @@
{ lib, ... }:
{ config, lib, ... }:
let
inherit (lib) mkOption types;
in
{
options.bare-submodule = mkOption {
type = types.submoduleWith {
shorthandOnlyDefinesConfig = config.shorthandOnlyDefinesConfig;
modules = [
{
options.nested = mkOption {