forked from mirrors_public/oddlama_nix-config
feat: use Segoe-UI fonts
This commit is contained in:
parent
5daa44e11c
commit
7b26c45fb8
3 changed files with 34 additions and 42 deletions
|
@ -1,53 +1,24 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
fonts = {
|
||||
enableDefaultFonts = false;
|
||||
enableGhostscriptFonts = false;
|
||||
fontDir.enable = false;
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
sansSerif = ["IBM Plex Sans"];
|
||||
serif = ["IBM Plex Sans"];
|
||||
monospace = ["FiraCode Nerd Font"];
|
||||
emoji = ["Noto Color Emoji"];
|
||||
};
|
||||
localConf = ''
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias binding="weak">
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias binding="weak">
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias binding="weak">
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
'';
|
||||
fontconfig.defaultFonts = {
|
||||
sansSerif = lib.mkBefore ["Segoe UI"];
|
||||
#serif = [];
|
||||
monospace = ["FiraCode Nerd Font"];
|
||||
emoji = ["Segoe UI Emoji" "Noto Fonts Emoji"];
|
||||
};
|
||||
fonts = with pkgs; [
|
||||
|
||||
packages = with pkgs; [
|
||||
(nerdfonts.override {fonts = ["FiraCode"];})
|
||||
ibm-plex
|
||||
dejavu_fonts
|
||||
unifont
|
||||
freefont_ttf
|
||||
gyre-fonts # TrueType substitutes for standard PostScript fonts
|
||||
liberation_ttf
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-emoji
|
||||
noto-fonts-extra
|
||||
segoe-ui-ttf
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
(import ./oauth2-proxy)
|
||||
(_self: super: {
|
||||
kanidm-secret-manipulator = super.callPackage ./kanidm-secret-manipulator.nix {};
|
||||
segoe-ui-ttf = super.callPackage ./segoe-ui-ttf.nix {};
|
||||
kanidm = super.kanidm.overrideAttrs (_finalAttrs: _previousAttrs: {
|
||||
patches = [
|
||||
(super.fetchpatch {
|
||||
|
|
20
pkgs/segoe-ui-ttf.nix
Normal file
20
pkgs/segoe-ui-ttf.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "segoe-ui";
|
||||
version = "unstable-2023-09-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mrbvrz";
|
||||
repo = "segoe-ui-linux";
|
||||
rev = "73b3a40c6c433d3b8149d945d4c441d4497d5f79";
|
||||
hash = "sha256-EwsoX6Rz1uaysCIxL11AHTKb2hfwKi/hNIKgG4MzR5o=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
install -m644 $src/font/*.ttf $out/share/fonts/truetype/
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue