{ lib, ... }: { options.mySystem = lib.mkOption { type = lib.types.attrsOf lib.types.submodule; # works in all versions default = {}; description = "Root container for all my custom system options"; }; }