Yes, you can file a joint return or a separate return. It does not matter if your husband did not have any U.S. income.
You must meet at least one of the two tests to qualify for Foreign Earned Income exclusion:
Physical Presence Test. You were present in foreign country for full 330 days in any period of 12 months in a row. (That is these 12 months can include two tax years.)
Bona Fide Residence Test. Since you are citizen of the foreign country you meet this test, unless you were in the foreign country for definite temporary purpose.
If you are not able to use income exclusion, you can always file form 1116 to get foreign tax credit.
Read:
Your U.S. Tax Return: U.S. Citizen or Resident with Foreign Income