nixos: remove default font packages

This commit is contained in:
Guanran Wang 2023-11-05 14:03:27 +08:00
parent 4869480438
commit 2a5ff02dfc
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 7 additions and 25 deletions

View file

@ -307,31 +307,12 @@
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
</match>
<!-- Workarounds -->
<!-- DejaVu fonts (breaks fontconfig order on NixOS) -->
<!-- https://github.com/NixOS/nixpkgs/issues/172412 -->
<!-- <match target="pattern">
<test name="family" qual="any"><string>DejaVu Sans</string></test>
<edit name="family" binding="same" mode="assign"><string>sans-serif</string></edit>
</match>
<match target="pattern">
<test name="family" qual="any"><string>DejaVu Serif</string></test>
<edit name="family" binding="same" mode="assign"><string>serif</string></edit>
</match>
<match target="pattern">
<test name="family" qual="any"><string>DejaVu Mono</string></test>
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
</match>
<match target="pattern">
<test name="family" qual="any"><string>DejaVu Sans Mono</string></test>
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
</match>
<match target="pattern">
<test name="family" qual="any"><string>DejaVu Math TeX Gyre</string></test>
<!- rebind to sans-serif bcz i dont even know what is a math font ->
<edit name="family" binding="same" mode="assign"><string>sans-serif</string></edit>
</match> -->
<!-- why is DejaVu Sans still here after fonts.enableDefaultPackages = false -->
<selectfont>
<rejectfont>
<pattern><patelt name="family" ><string>DejaVu Sans</string></patelt></pattern>
</rejectfont>
</selectfont>
<!-- Portal 2 missing non Latin font -->
<!-- (maybe even includes other valve games, since csgo console is missing non latin font too) -->

View file

@ -9,4 +9,5 @@
### home-manager
home-manager.users.guanranwang = import ../../home-manager/nixos/presets/desktop.nix;
fonts.enableDefaultPackages = false;
}