# Pastebin GtPrXJPt ({ config, options, lib, ... }: with lib; { options.enabled = mkOption { type = types.attrs; }; config.enabled = lib.mapAttrsRecursiveCond (attrs: isAttrs attrs) (path: value: mkIf (last path == "enable" && value == true) ((builtins.concatStringsSep "." path))) { inherit (config) ktmr; }; })