anchor.diff:          description = "A list of paths containing additional modules that are added to the search folders";
           default = [];
         };
  +
  +      enableLegacyModules = mkOption {
  +        type = types.bool;
  +        default = true;
  +        description = "Whether to enable Dysnomia legacy process and wrapper modules";
  +      };
       };
     };
   
  
positive.code:       tomcatPort = 8080;
      }; }
      // lib.optionalAttrs (config.services.mongodb.enable) { mongo-database = {}; }
      // lib.optionalAttrs (config.services.svnserve.enable) { subversion-repository = {
        svnBaseDir = config.services.svnserve.svnBaseDir;
      }; }) cfg.extraContainerProperties;
  
negative.code: 
      environment.systemPackages = [ cfg.package ];
  
      dysnomia.package = pkgs.dysnomia.override (origArgs: dysnomiaFlags // lib.optionalAttrs (cfg.enableLegacyModules) {
        enableLegacy = builtins.trace ''
          WARNING: Dysnomia has been configured to use the legacy 'process' and 'wrapper'
          modules for compatibility reasons! If you rely on these modules, consider
          migrating to better alternatives.
  
          More information: https://raw.githubusercontent.com/svanderburg/dysnomia/f65a9a84827bcc4024d6b16527098b33b02e4054/README-legacy.md
  
          If you have migrated already or don't rely on these Dysnomia modules, you can
          disable legacy mode with the following NixOS configuration option:
  
          dysnomia.enableLegacyModules = false;
  
          In a future version of Dysnomia (and NixOS) the legacy option will go away!
        '' true;
      });
  
      dysnomia.properties = {
        hostname = config.networking.hostName;
        inherit (config.nixpkgs.localSystem) system;
  
        supportedTypes = [
          "echo"
          "fileset"
          "process"
          "wrapper"
  
          # These are not base modules, but they are still enabled because they work with technology that are always enabled in NixOS
          "systemd-unit"
          "sysvinit-script"
          "nixos-configuration"
        ]
        ++ optional (dysnomiaFlags.enableApacheWebApplication) "apache-webapplication"
        ++ optional (dysnomiaFlags.enableAxis2WebService) "axis2-webservice"
        ++ optional (dysnomiaFlags.enableDockerContainer) "docker-container"
        ++ optional (dysnomiaFlags.enableEjabberdDump) "ejabberd-dump"
        ++ optional (dysnomiaFlags.enableInfluxDatabase) "influx-database"
        ++ optional (dysnomiaFlags.enableMySQLDatabase) "mysql-database"
        ++ optional (dysnomiaFlags.enablePostgreSQLDatabase) "postgresql-database"
        ++ optional (dysnomiaFlags.enableTomcatWebApplication) "tomcat-webapplication"
        ++ optional (dysnomiaFlags.enableMongoDatabase) "mongo-database"
        ++ optional (dysnomiaFlags.enableSubversionRepository) "subversion-repository";
      };
  
      dysnomia.containers = lib.recursiveUpdate ({
  