2020-09-18 13:54:09 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2020-09-24 05:45:48 +00:00
|
|
|
time.timeZone = "US/Eastern";
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
boot = {
|
|
|
|
zfs.forceImportAll = false;
|
|
|
|
zfs.forceImportRoot = false;
|
|
|
|
kernelParams = [ "amdgpu.gpu_recovery=1" "panic=30" ];
|
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ];
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
hardware = {
|
|
|
|
cpu.amd.updateMicrocode = true;
|
|
|
|
cpu.intel.updateMicrocode = true;
|
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
services = {
|
|
|
|
earlyoom.enable = true;
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
publish.enable = true;
|
|
|
|
publish.addresses = true;
|
2020-09-18 13:54:09 +00:00
|
|
|
};
|
2020-09-24 05:45:48 +00:00
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
}
|