An example will be much simpler, but I’m trying to understand in a more general way too.
I wanted to customize my Emacs fonts, added the config declaration in my config file and declared it in my
configuration.nix with the option
But it doesn’t work.
Had a look on the gnu website to add fonts to Emacs and it’s said to store the fonts in
/usr/local/share/emacs/fonts then add the path to X with
- How do I do that? I have several instances of
/emacs/fontsin my Nix store, like
- Do I want to do that? I read Nixos wiki on fonts and it’s indicated that the path to fonts is set to
~/.local/share/fonts. Wouldn’t that be only if I install them imperatively? How to have a local font directory and pass it to applications in a proper Nixos way?
EDIT: I only use
configuration.nix at the moment, I plan to move to
flakes in the near future but its not done