nixos: remove default font packages
This commit is contained in:
parent
4869480438
commit
2a5ff02dfc
2 changed files with 7 additions and 25 deletions
|
@ -307,31 +307,12 @@
|
||||||
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
|
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
|
<!-- why is DejaVu Sans still here after fonts.enableDefaultPackages = false -->
|
||||||
<!-- Workarounds -->
|
<selectfont>
|
||||||
<!-- DejaVu fonts (breaks fontconfig order on NixOS) -->
|
<rejectfont>
|
||||||
<!-- https://github.com/NixOS/nixpkgs/issues/172412 -->
|
<pattern><patelt name="family" ><string>DejaVu Sans</string></patelt></pattern>
|
||||||
<!-- <match target="pattern">
|
</rejectfont>
|
||||||
<test name="family" qual="any"><string>DejaVu Sans</string></test>
|
</selectfont>
|
||||||
<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> -->
|
|
||||||
|
|
||||||
<!-- Portal 2 missing non Latin font -->
|
<!-- Portal 2 missing non Latin font -->
|
||||||
<!-- (maybe even includes other valve games, since csgo console is missing non latin font too) -->
|
<!-- (maybe even includes other valve games, since csgo console is missing non latin font too) -->
|
||||||
|
|
|
@ -9,4 +9,5 @@
|
||||||
|
|
||||||
### home-manager
|
### home-manager
|
||||||
home-manager.users.guanranwang = import ../../home-manager/nixos/presets/desktop.nix;
|
home-manager.users.guanranwang = import ../../home-manager/nixos/presets/desktop.nix;
|
||||||
|
fonts.enableDefaultPackages = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue