mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 15:08:45 +08:00
20 lines
514 B
Nix
20 lines
514 B
Nix
{ hostName }: { pkgs, ... }@inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
nix.settings =
|
|
{
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
keep-outputs = true;
|
|
system-features = [ "big-parallel" ];
|
|
keep-failed = true;
|
|
};
|
|
networking.hostName = hostName;
|
|
time.timeZone = "Asia/Shanghai";
|
|
system.stateVersion = "22.11";
|
|
nixpkgs.config.allowUnfree = true;
|
|
systemd = { extraConfig = "DefaultTimeoutStopSec=10s"; user.extraConfig = "DefaultTimeoutStopSec=10s"; };
|
|
};
|
|
}
|