Files
nix/modules/nixos/core/default.nix
alex 91b8e65a79 1 封装nix-fhs使用nix-ld
2 修改生成hylrland配置文件的方式
3 启用flatpak
2025-05-19 10:20:28 +08:00

46 lines
908 B
Nix

{ lib, pkgs, ... }:
{
imports = [
./boot.nix
./system.nix
./nixfhs.nix
../user.nix
];
environment = {
systemPackages = with pkgs;
[
smartmontools
];
};
programs = {
git.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";
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";
}