anchor.diff:                          sleep 1
                       done
   
  -	            ${concatMapStrings (dump:
  -		      ''
  -		        echo "Importing dump: ${dump}"
  -			
  -			if [ -f ${dump} ]
  -			then
  -		            ejabberdctl --config-dir ${cfg.confDir} --logs ${cfg.logsDir} --spool ${cfg.spoolDir} load ${dump}
  -			elif [ -d ${dump} ]
  -			then
  -			    for i in ${dump}/ejabberd-dump/*
  -			    do
  -			        ejabberdctl --config-dir ${cfg.confDir} --logs ${cfg.logsDir} --spool ${cfg.spoolDir} load $i
  -			    done
  -			fi
  -		      '') cfg.loadDumps}
  -	        fi
  -	      ''}
  +                    ${concatMapStrings (dump:
  +                      ''
  +                        echo "Importing dump: ${dump}"
  +
  +                        if [ -f ${dump} ]
  +                        then
  +                            ejabberdctl --config-dir ${cfg.confDir} --logs ${cfg.logsDir} --spool ${cfg.spoolDir} load ${dump}
  +                        elif [ -d ${dump} ]
  +                        then
  +                            for i in ${dump}/ejabberd-dump/*
  +                            do
  +                                ejabberdctl --config-dir ${cfg.confDir} --logs ${cfg.logsDir} --spool ${cfg.spoolDir} load $i
  +                            done
  +                        fi
  +                      '') cfg.loadDumps}
  +                fi
  +              ''}
             '';
   
           postStop =
  -          ''        
  +          ''
               ejabberdctl --config-dir ${cfg.confDir} --logs ${cfg.logsDir} --spool ${cfg.spoolDir} stop
             '';
         };
   
     };
  -  
  +
   }
  
positive.code:       loadDumps = mkOption {
          default = [];
          description = "Configuration dump that should be loaded on the first startup";
  	example = [ ./myejabberd.dump ];
        };
      };
      
    };
    
  
    ###### implementation
  
  
negative.code:   ###### interface
  
    options = {
  
      services.ejabberd = {
  
        enable = mkOption {
          default = false;
          description = "Whether to enable ejabberd server";
  