2023-06-09 20:54:03 +08:00
|
|
|
{ hostName }: { pkgs, ... }@inputs:
|
|
|
|
{
|
|
|
|
config =
|
|
|
|
{
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
2023-06-10 03:21:34 +08:00
|
|
|
nix =
|
2023-06-09 21:09:52 +08:00
|
|
|
{
|
2023-06-10 03:21:34 +08:00
|
|
|
settings =
|
|
|
|
{
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
keep-outputs = true;
|
|
|
|
system-features = [ "big-parallel" ];
|
|
|
|
keep-failed = true;
|
|
|
|
};
|
|
|
|
daemonIOSchedClass = "idle";
|
|
|
|
daemonCPUSchedPolicy = "idle";
|
2023-06-09 21:09:52 +08:00
|
|
|
};
|
2023-06-09 20:54:03 +08:00
|
|
|
networking.hostName = hostName;
|
|
|
|
time.timeZone = "Asia/Shanghai";
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2023-06-10 03:21:34 +08:00
|
|
|
systemd =
|
|
|
|
{
|
|
|
|
extraConfig = "DefaultTimeoutStopSec=10s";
|
|
|
|
user.extraConfig = "DefaultTimeoutStopSec=10s";
|
2023-06-14 23:28:45 +08:00
|
|
|
services.nix-daemon.serviceConfig = { Slice = "-.slice"; Nice = "19"; };
|
2023-06-10 03:44:28 +08:00
|
|
|
};
|
2023-06-13 13:41:44 +08:00
|
|
|
programs.nix-ld.enable = true;
|
2023-06-17 06:03:06 +08:00
|
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
2023-06-09 20:54:03 +08:00
|
|
|
};
|
|
|
|
}
|