Towards measuring the microscopic origin of 1/f-flux noise using nanowire transmons subject to a magnetic field