The borough council said on Thursday it had reached an agreement with Derbyshire County Council.