TL;DR
If you are tax-resident in France and hold Swiss nationality, your Swiss public-sector salary is taxable only in Switzerland. You must declare it in France; it is taken into account there to calculate tax, then offset by a tax credit equal to the corresponding French tax, subject to special cases.
Swiss nationality determines where public-sector salary is taxed
Public-sector remuneration, salaries, retirement benefits and pensions paid by a Contracting State or one of its subdivisions for public duties are taxable only in the paying State if the beneficiary is a natural person who holds the nationality of that State.1
Swiss public-sector remuneration paid to a resident of France who holds Swiss nationality is taxable only in Switzerland. It is taken into account to calculate French tax, then offset by a tax credit equal to the French tax corresponding to this income.1
Public-sector remuneration and pensions paid to a person who does not hold the nationality of the State from which they originate are subject to the treaty rules applicable to private-sector salaries and pensions, and not to the exclusive taxation of public-sector remuneration.1
Declare in France and avoid double taxation
A person who is tax-resident in France must declare all their income, whether from French or foreign sources, including income already taxed in Switzerland. A person whose tax household is located in France must pay income tax there, including on income from foreign sources.2,3
For income of Swiss origin received by a person who is tax-resident in France, France eliminates all double taxation by applying the rules of the French-Swiss tax treaty. This income is taken into account when calculating French tax and qualifies for a tax credit.2
An employee taxed by Switzerland who falls under case 2 is not considered a cross-border worker: they do not meet the conditions of the French-Swiss agreement of 11/04/1983 to qualify as a cross-border worker. Case 2A “general” concerns, in particular, civil servants who receive Swiss public-sector remuneration.2
An employee taxed by Switzerland who falls under case 2 is taxed at source in Switzerland and must declare this income in France, where they are tax-resident. In case 2A “general”, except for special cases falling under CASE 2B, the tax credit that eliminates double taxation in France is equal to the amount of French tax corresponding to the Swiss salary.2
In case 2B “special” for flight crew, artists or athletes, the tax credit that eliminates double taxation in France is equal to the amount of tax paid in Switzerland on the salary.2
In case 3, for employees exempt from tax in Switzerland, a person who is tax-resident in France remains taxable in France on all their worldwide income.2
To find out which provisions might apply to a tax household located in France because of a tax treaty or a particular situation, for example if the person is a State employee, that household should contact its tax office.3