38 lines
796 B
Nix
38 lines
796 B
Nix
{ lib, ... }:
|
|
{
|
|
imports = [
|
|
./boot.nix
|
|
./system.nix
|
|
];
|
|
|
|
programs = {
|
|
git.enable = true;
|
|
dconf.enable = true;
|
|
nix-ld.enable = true;
|
|
};
|
|
|
|
# Configure firewall
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 22 80 443 ]; # 根据需要调整
|
|
allowedUDPPorts = [ 9 53 ]; # 9: wol, 53: dns
|
|
};
|
|
|
|
# Select internationalisation properties.
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "zh_CN.UTF-8";
|
|
LC_IDENTIFICATION = "zh_CN.UTF-8";
|
|
LC_MEASUREMENT = "zh_CN.UTF-8";
|
|
LC_MONETARY = "zh_CN.UTF-8";
|
|
LC_NAME = "zh_CN.UTF-8";
|
|
LC_NUMERIC = "zh_CN.UTF-8";
|
|
LC_PAPER = "zh_CN.UTF-8";
|
|
LC_TELEPHONE = "zh_CN.UTF-8";
|
|
LC_TIME = "zh_CN.UTF-8";
|
|
};
|
|
|
|
time.timeZone = "Asia/Shanghai";
|
|
}
|