diff --git a/modules/profiles/desktop.nix b/modules/profiles/desktop.nix index 10464bc..a01d419 100644 --- a/modules/profiles/desktop.nix +++ b/modules/profiles/desktop.nix @@ -25,7 +25,9 @@ with lib; MOUSE_DPI=600@1000 ''; - fonts.fonts = [ pkgs.bck-nerdfont ]; + fonts.fonts = [ + (pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; }) + ]; environment.variables.MOZ_ENABLE_WAYLAND = "1"; environment.variables.MOZ_USE_XINPUT2 = "1"; diff --git a/pkgs/bck-nerdfont.nix b/pkgs/bck-nerdfont.nix deleted file mode 100644 index 832ed63..0000000 --- a/pkgs/bck-nerdfont.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ nerdfonts -, python3 -, runCommand -, writeScript -}: - -let - py = python3.withPackages (p: [ p.fontforge ]); - - src = nerdfonts.override { fonts = [ "DejaVuSansMono" ]; }; - - # Stick a rectangle on the left edge of the - # powerline symbol to avoid anti-aliasing artifacts - postprocess = writeScript "postprocess.py" '' - #!${py}/bin/python - import fontforge, psMat, sys, os - f = fontforge.open(sys.argv[1]) - glyph = f[0xE0B0] - bb = glyph.boundingBox() - pen = glyph.glyphPen(replace=False) - pen.moveTo(0, bb[1]) - pen.lineTo(0, bb[3]) - pen.lineTo(-150, bb[3]) - pen.lineTo(-150, bb[1]) - pen.closePath() - os.unlink(sys.argv[1]) - f.generate(sys.argv[1]) - ''; - -in -runCommand "bck-nerdfont" { inherit src; } '' - find $src -name '*Complete.ttf' -exec install -D -t $out/share/fonts/truetype {} \; - find $out -name '*Complete.ttf' -exec ${postprocess} {} \; -''