mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
profiles/i18n: init NixOS module
This commit is contained in:
parent
8b4690fc73
commit
530da5c878
43
modules/nixos/profiles/i18n.nix
Normal file
43
modules/nixos/profiles/i18n.nix
Normal file
@ -0,0 +1,43 @@
|
||||
# System-wide i18n options.
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.profiles.i18n;
|
||||
in {
|
||||
options.profiles.i18n.enable = lib.mkEnableOption "i18n-related options";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# I don't speak all of the listed languages. It's just nice to have some
|
||||
# additional language packs for it. ;p
|
||||
i18n.supportedLocales = [
|
||||
"en_US.UTF-8"
|
||||
"ja_JP.UTF-8"
|
||||
"ko_KR.UTF-8"
|
||||
"zh_CN.UTF-8"
|
||||
"zh_HK.UTF-8"
|
||||
"zh_SG.UTF-8"
|
||||
"tl_PH.UTF-8"
|
||||
"fr_FR.UTF-8"
|
||||
"it_IT.UTF-8"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
goldendict
|
||||
];
|
||||
|
||||
# The most minimal set of packages for most locales.
|
||||
fonts.fonts = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
|
||||
source-code-pro
|
||||
source-sans-pro
|
||||
source-han-sans
|
||||
source-serif-pro
|
||||
source-han-serif
|
||||
source-han-mono
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user