I am trying to install Input Fonts on NixOS (which I'm pretty new to).
I seem to be unable to install input-fonts on NixOS even though I have the following lines in my /etc/nixos/configuration.nix
fonts.fonts = with pkgs; [ input-fonts ]; nixpkgs.config.allowUnfree = true; nixpkgs.config.input-fonts.acceptLicense = true;
When trying to
nixos-rebuild switch, I get the following error:
*** Unfortunately, we cannot download file Input-Font.zip automatically. Please go to https://input.fontbureau.com/download/ to download it yourself, and add it to the Nix store using either nix-store --add-fixed sha256 Input-Font.zip or nix-prefetch-url --type sha256 file:///path/to/Input-Font.zip ***
Looks like the issue is that there is no static download URL accessible from the Fontbureau page.
So I have downloaded the zip manually and run
nix-store --add-fixed sha256 Input-Font.zip, but frankly I don't really know what to do with the output and the docs for --add-fixed don't really shed any light on it for me.
I get an output like this:
Is anyone more familiar with installing packages in this way able to shed light on what to do with this?
Alternatively I could install the fonts from the files I've downloaded manually, but I am also unclear on how to do that, NixOS docs state:
Adding personal fonts to ~/.fonts doesn't work The ~/.fonts directory is being deprecated upstream. It already doesn't work in NixOS. The new preferred location is in $XDG_DATA_HOME/fonts, which for most users will resolve to ~/.local/share/fonts
I have tried adding the font files in ~/.local/share/fonts too, but they still don't get recognized when I try to use them in any config.
Any help on either method for getting these fonts working would be appreciated!