nixos-configs/modules/base/locale/default.nix
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05:00

48 lines
955 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = config.roles.base;
in
mkIf cfg.enable {
fonts = {
fontconfig = {
enable = true;
defaultFonts = {
emoji = ["Noto Color Emoji"];
monospace = ["JetBrainsMono Nerd Font"];
sansSerif = ["Noto Nerd Font"];
serif = ["Noto Nerd Font"];
};
};
packages = with pkgs;
[
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
liberation_ttf
font-awesome
meslo-lgs-nf
jetbrains-mono
ubuntu_font_family
]
++ (with pkgs.nerd-fonts; [
jetbrains-mono
go-mono
iosevka
symbols-only
space-mono
ubuntu
noto
]);
};
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
console.useXkbConfig = true;
}