configuration.nix配置文件
#Grub boot loader
boot.loader = {
efi.efiSysMountPoint = "/boot/efi"; #独立esp分区
timeout = 10;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
useOSProber = true;
efiInstallAsRemovable = true; #将引导文件安装在efi分区
default = "2";
# gfxmodeEfi = "2560x1440";
};
};
#Chinese Input Method
i18n.defaultLocale = "zh_CN.UTF-8";
i18n.inputMethod = {
enabled = "fcitx";
fcitx.engines = with pkgs.fcitx-engines; [ mozc hangul m17n ];
# China server
nix.settings.substituters = [ "https://mirrors.ustc.edu.cn/nix-channels/store" ];
# nix.settings.substituters = [ "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" ];