The federal government has announced nearly $2 million in funding for the Halifax area to help prevent gun and gang violence in the community.