main
 1{den, ...}: {
 2  den.aspects.core.includes = [den.aspects.core.misc];
 3  den.aspects.core.misc = {
 4    nixos = {lib, ...}: {
 5      # Don't need to keep too many generations when using Git for version control.
 6      boot.loader.systemd-boot.configurationLimit = lib.mkDefault 10;
 7
 8      networking.nftables.enable = true;
 9
10      networking.timeServers = [
11        "time.cloudflare.com" # Cloudflare NTP server
12        "ntp.aliyun.com" # Aliyun NTP server
13        "ntp.tencent.com" # Tencent NTP server
14      ];
15
16      time.timeZone = "Asia/Shanghai";
17
18      i18n = {
19        defaultLocale = "en_US.UTF-8";
20        extraLocaleSettings = {
21          LC_COLLATE = "C.UTF-8";
22        };
23      };
24    };
25
26    hjem = {config, ...}: {
27      clobberFiles = true;
28      files.".bash_profile".text = ''
29        # load session variables
30        . ${config.environment.loadEnv}
31
32        # include .bashrc if it exists
33        [[ -f ~/.bashrc ]] && . ~/.bashrc
34      '';
35    };
36  };
37}