mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
console = {
|
|
font = "ter-i32b";
|
|
packages = with pkgs; [terminus_font];
|
|
earlySetup = true;
|
|
};
|
|
|
|
fonts = {
|
|
packages = with pkgs; [
|
|
roboto
|
|
dejavu_fonts
|
|
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
|
# Some japanese fonts
|
|
ipafont
|
|
kochi-substitute
|
|
];
|
|
|
|
fontconfig = {
|
|
defaultFonts = {
|
|
monospace = [
|
|
"JetBrainsMono NL Nerd Font"
|
|
"IPAGothic"
|
|
];
|
|
sansSerif = [
|
|
"DejaVu Sans"
|
|
"IPAPGothic"
|
|
];
|
|
serif = [
|
|
"DejaVu Serif"
|
|
"IPAPMincho"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
# Create an FHS mount to support flatpak host icons/fonts
|
|
system.fsPackages = [pkgs.bindfs];
|
|
fileSystems = let
|
|
mkRoSymBind = path: {
|
|
device = path;
|
|
fsType = "fuse.bindfs";
|
|
options = ["ro" "resolve-symlinks" "x-gvfs-hide"];
|
|
};
|
|
aggregatedFonts = pkgs.buildEnv {
|
|
name = "system-fonts";
|
|
paths = config.fonts.packages;
|
|
pathsToLink = ["/share/fonts"];
|
|
};
|
|
in {
|
|
# icons don't work, don't know why, don't care
|
|
# "/usr/share/icons" = mkRoSymBind (config.system.path + "/share/icons");
|
|
"/usr/share/fonts" = mkRoSymBind (aggregatedFonts + "/share/fonts");
|
|
};
|
|
}
|