[FIXED] Troubleshooting corrupt font or system

FIXED: for some reason font-manager added a file to my home dir rejecting the font (I might’ve done something in the UI idk how it even got there):

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- Generated by Font Manager. Do NOT edit this file. -->
<fontconfig>
  <selectfont>
    <rejectfont>
      <pattern>
        <patelt name="family">
          <string>BerkeleyMono Nerd Font</string>
        </patelt>
      </pattern>
    </rejectfont>
  </selectfont>
</fontconfig>

Thanks to everyone that helped on the discord! <3

I have been using a custom package for Berkeley Mono pretty much since I installed NixOS, I saw a blog post on how to package and patch it for nerdfonts support and went with it. It has worked pretty much since I installed Nix.
This week I don’t remember doing anything weird (other than trying Inter as my sansSerif/serif fonts) but now this font refuses to be detected by the system.
I can’t see it with fc-list or font-manager. I re-use mostly the same config for my laptop and of course it works there.
I’ve cleared the cache multiple times with fc-cache -r and rebuilt it to no avail. The thing is in my store (although I’m not sure how to check if it’s actually reference) and I can definitely fc-query it with the path and returns the font information.
I’m not sure what else to do as applications are now defaulting to Dejavu Sans Mono.
I’m inclined to be believe it is not my config because it has worked before and it works on my laptop (I just rebuilt after a flake update even, still there).
My filesystem seems ok, I booted the installer and ran fsck on the root and home partitions iirc.
Here are the relevant parts of my config:

The invocation

stylix adds every package to fontconfig.packages and I’ve also added it manually to no avail

{
  pkgs,
  config,
  ...
}: let
  inherit (config.stylix) fonts;
  berkeley-mono-typeface = pkgs.callPackage ../../../packages/berkeley-mono-typeface.nix {inherit pkgs;};
in {
  stylix.fonts = {
    monospace = {
      name = "BerkeleyMono Nerd Font";
      package = berkeley-mono-typeface;
    };
    sansSerif = {
      package = pkgs.inter;
      name = "Inter";
    };
    serif = fonts.sansSerif;
    emoji = {
      package = pkgs.noto-fonts-emoji;
      name = "Noto Color Emoji";
    };
    sizes = {
      applications = 12;
      desktop = 10;
      terminal = 12;
    };
  };
}

The custom package

{
  unzip,
  stdenvNoCC,
  requireFile,
  variant ? "ligaturesoff-0variant1-7variant0",
  ...
}:
stdenvNoCC.mkDerivation {
  pname = "berkeley-mono-typeface";
  version = "1.009";

  # src = ../assets/berkeley-mono.zip;
  src = requireFile rec {
    name = "berkeley-mono.zip";
    # name = "${finalAttrs.pname}-${variant}-${finalAttrs.version}.zip";
    sha256 = "0m3p99hwxxa5nsjlbc3x6csp3qiy21smhq5y25qnwywp3240aibc";
    message = ''
      This file needs to be manually downloaded from the Berkeley Graphics
      site (https://berkeleygraphics.com/accounts). An email will be sent to
      get a download link.

      Select the variant that matches “${variant}”
      & download the zip file.

      I just used patched NerdFonts version to rename to berkeley-mono.zip.

      Then run:

      mv \$PWD/berkeley-mono-typeface.zip \$PWD/${name}
      nix-prefetch-url --type sha256 file://\$PWD/${name}
    '';
  };
  nativeBuildInputs = [unzip];

  unpackPhase = ''
      runHook preUnpack
      unzip $src

    ls -la
      runHook postUnpack
  '';

  installPhase = ''
    runHook preInstall

    install -Dm644 berkeley-mono-patched/*.ttf -t $out/share/fonts/truetype

    runHook postInstall
  '';
}

Some debugging

❯ fc-list -v | grep -i berkeley
(comes out empty)
❯ fd Berkeley /nix/store
/nix/store/jqrs27yzy623a94psksx422y5qq9kqfj-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/jqrs27yzy623a94psksx422y5qq9kqfj-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/jqrs27yzy623a94psksx422y5qq9kqfj-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/jqrs27yzy623a94psksx422y5qq9kqfj-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
/nix/store/8bb3xqm8py3w46w5iz2ikw813h77553a-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/8bb3xqm8py3w46w5iz2ikw813h77553a-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
/nix/store/8bb3xqm8py3w46w5iz2ikw813h77553a-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/8bb3xqm8py3w46w5iz2ikw813h77553a-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/cxix1i6l3pvqinbia2xb0zpz36yq21ci-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/cxix1i6l3pvqinbia2xb0zpz36yq21ci-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/cxix1i6l3pvqinbia2xb0zpz36yq21ci-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/cxix1i6l3pvqinbia2xb0zpz36yq21ci-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
/nix/store/aqw1mwb7l7mahzf79f4lf9i0ljr9zq2x-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/aqw1mwb7l7mahzf79f4lf9i0ljr9zq2x-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/aqw1mwb7l7mahzf79f4lf9i0ljr9zq2x-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/aqw1mwb7l7mahzf79f4lf9i0ljr9zq2x-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
/nix/store/rwnyhr8mx8zlfna2a7yy266ihvkv3546-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/rwnyhr8mx8zlfna2a7yy266ihvkv3546-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/rwnyhr8mx8zlfna2a7yy266ihvkv3546-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/rwnyhr8mx8zlfna2a7yy266ihvkv3546-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Bold.ttf
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Italic.ttf
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-BoldItalic.ttf
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype/BerkeleyMonoNerdFont-Regular.ttf
❯ fc-cache -rf
❯ fc-cache -v
Font directories:
	/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009
	/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1
	/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37
	/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503
	/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005
	/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5
	/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01
	/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047
	/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/lib/X11/fonts
	/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts
	/etc/profiles/per-user/xored/lib/X11/fonts
	/home/xored/.local/share/fonts
	/nix/store/h9ycyv41pjn446sji046f0sgd3yr2vsy-desktops/share/fonts
	/home/xored/.nix-profile/share/fonts
	/home/xored/.local/state/nix/profile/share/fonts
	/etc/profiles/per-user/xored/share/fonts
	/nix/var/nix/profiles/default/share/fonts
	/run/current-system/sw/share/fonts
	/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37
	/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share
	/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share
	/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share
	/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share
	/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share
	/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share
	/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share
	/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share
	/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/noto
	/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype
	/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share
	/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts
	/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share/fonts
	/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share/fonts
	/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share/fonts
	/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share/fonts
	/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/doc
	/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/fonts
	/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share/fonts
	/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share/fonts
	/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share/fonts
	/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype
	/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share/fonts/truetype
	/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share/fonts/truetype
	/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share/fonts/truetype
	/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share/fonts/truetype
	/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/doc/liberation-fonts-2.1.5
	/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/fonts/truetype
	/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share/fonts/opentype
	/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share/fonts/noto
	/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share/fonts/truetype
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype: skipping, existing cache is valid: 4 fonts, 0 dirs
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share/fonts/truetype: skipping, existing cache is valid: 56 fonts, 0 dirs
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share/fonts/truetype: skipping, existing cache is valid: 22 fonts, 0 dirs
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share/fonts/truetype: skipping, existing cache is valid: 12 fonts, 0 dirs
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share/fonts/truetype: skipping, existing cache is valid: 33 fonts, 0 dirs
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share: skipping, existing cache is valid: 0 fonts, 2 dirs
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/doc: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/doc/liberation-fonts-2.1.5: skipping, existing cache is valid: 0 fonts, 0 dirs
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/fonts/truetype: skipping, existing cache is valid: 12 fonts, 0 dirs
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share/fonts: skipping, existing cache is valid: 2 fonts, 1 dirs
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share/fonts/opentype: skipping, existing cache is valid: 1 fonts, 0 dirs
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share/fonts/noto: skipping, existing cache is valid: 1 fonts, 0 dirs
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/lib/X11/fonts: skipping, no such directory
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts: skipping, existing cache is valid: 0 fonts, 2 dirs
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/noto: skipping, existing cache is valid: 1 fonts, 0 dirs
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype: skipping, existing cache is valid: 60 fonts, 0 dirs
/etc/profiles/per-user/xored/lib/X11/fonts: skipping, no such directory
/home/xored/.local/share/fonts: skipping, existing cache is valid: 0 fonts, 0 dirs
/nix/store/h9ycyv41pjn446sji046f0sgd3yr2vsy-desktops/share/fonts: skipping, no such directory
/home/xored/.nix-profile/share/fonts: skipping, no such directory
/home/xored/.local/state/nix/profile/share/fonts: skipping, no such directory
/etc/profiles/per-user/xored/share/fonts: skipping, no such directory
/nix/var/nix/profiles/default/share/fonts: skipping, no such directory
/run/current-system/sw/share/fonts: skipping, no such directory
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share/fonts/truetype: skipping, existing cache is valid: 1 fonts, 0 dirs
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share: skipping, looped directory detected
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share: skipping, looped directory detected
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share: skipping, looped directory detected
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share: skipping, looped directory detected
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share: skipping, looped directory detected
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share: skipping, looped directory detected
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share: skipping, looped directory detected
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share: skipping, looped directory detected
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/noto: skipping, looped directory detected
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/share/fonts/truetype: skipping, looped directory detected
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share: skipping, looped directory detected
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts: skipping, looped directory detected
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share/fonts: skipping, looped directory detected
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share/fonts: skipping, looped directory detected
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share/fonts: skipping, looped directory detected
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share/fonts: skipping, looped directory detected
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/doc: skipping, looped directory detected
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/fonts: skipping, looped directory detected
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share/fonts: skipping, looped directory detected
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share/fonts: skipping, looped directory detected
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share/fonts: skipping, looped directory detected
/nix/store/61avhhywjdn3m0w8wlw0by0vhn1sqz7g-berkeley-mono-typeface-1.009/share/fonts/truetype: skipping, looped directory detected
/nix/store/jb9ac6pljl4hlncix4v439h83nsvgwls-inter-4.1/share/fonts/truetype: skipping, looped directory detected
/nix/store/pskk09q54c3w3adkk4dl21ldvr2xpslj-dejavu-fonts-2.37/share/fonts/truetype: skipping, looped directory detected
/nix/store/zyd3x07pkaly9k6vams2k1xsfhpw88kd-freefont-ttf-20120503/share/fonts/truetype: skipping, looped directory detected
/nix/store/aqf9wc3alplhddvci0gq2a85vl1732nf-gyre-fonts-2.005/share/fonts/truetype: skipping, looped directory detected
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/doc/liberation-fonts-2.1.5: skipping, looped directory detected
/nix/store/an7wz6msj5j7s8qmzs845xc3cix79x79-liberation-fonts-2.1.5/share/fonts/truetype: skipping, looped directory detected
/nix/store/392y7yi0clkphqq7nyp6sfdy65zaryy5-unifont-16.0.01/share/fonts/opentype: skipping, looped directory detected
/nix/store/yj3575kxqvr1h7v89p0vmi23kwcdz0hx-noto-fonts-color-emoji-2.047/share/fonts/noto: skipping, looped directory detected
/nix/store/hbrcibdl494a5w3dypy7095dckalzlqa-dejavu-fonts-minimal-2.37/share/fonts/truetype: skipping, looped directory detected
/home/xored/.cache/fontconfig: cleaning cache directory
/var/cache/fontconfig: not cleaning non-existent cache directory
/nix/store/9yp3p1psbg8vliwrj8k3h5kb1jlg1a6q-fc-cache: not cleaning unwritable cache directory
/nix/store/0z6jkv9x6y750r8h5j7x0ph7nbn60mlg-home-manager-path/lib/fontconfig/cache: not cleaning unwritable cache directory
fc-cache: succeeded

I really don’t want to reinstall since my VMs are not declarative yet and were a pain to get right. Please help.

EDIT: I only keep 10 derivations and unfortunately most of them went about before I really noticed the issue (kitty runs in single-instance mode so I didn’t notice pretty much until a reboot), but I’ve tried rebuilding my config from old git commits and it doesn’t make a difference. I even went HEAD~100 at one point.