Setting the font for foot terminal with home-manager

When following the home-manager example for setting the font for foot, the build errors out saying:

error: A definition for option `programs.foot.settings.font' is not of type `section of an INI file (attrs of INI atom (null, bool, int, float or string))'. Definition…
- In `/nix/store/iidr1zab71kfr1j201wdans4z4996c77-source/home-manager/users/user/sway.nix': "Fira Code:size=11"

Are there any characters in there that I need to escape? This is a valid setting in the foot.ini configuration file.

According to the home manager example, font needs an attrset named main, between it and prograns.foot.settings in the hierarchy.

In other words, if your code for that option looks like this:

programs.foot.settings.font =  "Fira Code:size=11";

Change it to something like this:

programs.foot.settings.main.font =  "Fira Code:size=11";
1 Like

Oh my goodness, I’m getting tired. I totally missed that! Tysm!