91 lines
1.8 KiB
Nix
91 lines
1.8 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
nix.settings.substituters =
|
|
[
|
|
"https://mirrors.ustc.edu.cn/nix-channels/store"
|
|
];
|
|
imports =
|
|
[
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "nodev";
|
|
copyKernels = true;
|
|
};
|
|
boot.loader.systemd-boot.enable = false;
|
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
|
#boot.loader.grub.device = "/dev/sda";
|
|
|
|
networking.hostName = "kami";
|
|
|
|
time.timeZone = "Asia/Shanghai";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
i18n.inputMethod = {
|
|
enable = true;
|
|
type = "fcitx5";
|
|
fcitx5.addons = with pkgs; [
|
|
qt6Packages.fcitx5-chinese-addons
|
|
qt6Packages.fcitx5-configtool
|
|
fcitx5-gtk
|
|
];
|
|
};
|
|
|
|
i18n.inputMethod.fcitx5.waylandFrontend = false;
|
|
environment.sessionVariables = {
|
|
GTK_IM_MODULE = "fcitx";
|
|
QT_IM_MODULE = "fcitx";
|
|
XMODIFIERS = "@im=fcitx";
|
|
SDL_IM_MODULE = "fcitx";
|
|
GLFW_IM_MODULE = "ibus";
|
|
};
|
|
|
|
users.users.kami = {
|
|
isNormalUser = true;
|
|
extraGroups = ["wheel"];
|
|
hashedPassword = "$y$j9T$RVjZnG9S0wuu0sDCgoo2l1$TOrljjjbcxbJR/WfContG6GV1uLFvHZLxxI.hnR1AZ2";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs;
|
|
[
|
|
nano
|
|
vim
|
|
curl
|
|
openssh
|
|
htop
|
|
git
|
|
fastfetch
|
|
lvm2
|
|
wpa_supplicant
|
|
dhcpcd
|
|
networkmanager
|
|
firefox
|
|
screen
|
|
noto-fonts
|
|
noto-fonts-cjk-sans
|
|
noto-fonts-color-emoji
|
|
alsa-lib
|
|
alsa-tools
|
|
alsa-utils
|
|
alsa-plugins
|
|
alsa-firmware
|
|
];
|
|
|
|
services.openssh.enable = true;
|
|
services.openssh.settings.PasswordAuthentication = true;
|
|
|
|
networking.firewall.enable = false;
|
|
networking.networkmanager.enable = true;
|
|
|
|
system.copySystemConfiguration = true;
|
|
|
|
services.xserver.enable = true;
|
|
services.xserver.displayManager.lightdm.enable = true;
|
|
services.xserver.desktopManager.xfce.enable = true;
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|