feat(nix-hm): manage fontconfig
via nix
This commit is contained in:
parent
3d6a5a0e40
commit
10f8c636ff
@ -32,6 +32,7 @@ in {
|
|||||||
bob-nvim
|
bob-nvim
|
||||||
(nixGLWrap neovide)
|
(nixGLWrap neovide)
|
||||||
(nixGLWrap wezterm)
|
(nixGLWrap wezterm)
|
||||||
|
fontconfig
|
||||||
emacs-pgtk
|
emacs-pgtk
|
||||||
sqlite
|
sqlite
|
||||||
luajit
|
luajit
|
||||||
@ -118,14 +119,16 @@ in {
|
|||||||
} // softLinkDots ".config";
|
} // softLinkDots ".config";
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
TERMINFO_DIRS = "${config.home.homeDirectory}/.nix-profile/share/terminfo";
|
TERMINFO_DIRS =
|
||||||
|
"${config.home.homeDirectory}/.nix-profile/share/terminfo";
|
||||||
WSLENV = "TERMINFO_DIRS";
|
WSLENV = "TERMINFO_DIRS";
|
||||||
|
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
||||||
};
|
};
|
||||||
sessionPath = [
|
sessionPath = [ "${config.xdg.dataHome}/bin" ];
|
||||||
"${config.xdg.dataHome}/bin"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mime.enable = true;
|
mime.enable = true;
|
||||||
@ -164,9 +167,46 @@ in {
|
|||||||
"/usr/share"
|
"/usr/share"
|
||||||
"/usr/local/share"
|
"/usr/local/share"
|
||||||
];
|
];
|
||||||
configFile."bob/config.toml".text = ''
|
configFile = {
|
||||||
installation_location = "${config.xdg.dataHome}/bin"
|
"fontconfig/fonts.conf".text = ''
|
||||||
'';
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<alias>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Noto Sans</family>
|
||||||
|
<family>Fira Code</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Noto Serif</family>
|
||||||
|
<family>Fira Code</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>monospace</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Fira Code</family>
|
||||||
|
<family>FiraCode Nerd Font</family>
|
||||||
|
<family>Noto Sans Mono</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>emoji</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Twemoji</family>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
</fontconfig>
|
||||||
|
'';
|
||||||
|
"bob/config.toml".text = ''
|
||||||
|
installation_location = "${config.xdg.dataHome}/bin"
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
Loading…
Reference in New Issue
Block a user