2021-11-21 18:11:47 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2020-09-18 13:54:09 +00:00
|
|
|
{
|
2020-09-24 05:45:48 +00:00
|
|
|
time.timeZone = "US/Eastern";
|
2021-11-07 01:09:53 +00:00
|
|
|
|
|
|
|
# the default is all languages. this just shrinks the install size
|
2021-04-14 14:24:51 +00:00
|
|
|
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
boot = {
|
|
|
|
zfs.forceImportRoot = false;
|
|
|
|
kernelParams = [ "amdgpu.gpu_recovery=1" "panic=30" ];
|
2021-11-07 01:09:53 +00:00
|
|
|
initrd.availableKernelModules = [ "nvme" ]; # is this still needed?
|
2020-09-24 05:45:48 +00:00
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2021-10-03 21:29:58 +00:00
|
|
|
security.sudo.extraConfig = "Defaults lecture=never";
|
|
|
|
|
2021-11-09 17:20:34 +00:00
|
|
|
systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ];
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2022-08-19 15:18:01 +00:00
|
|
|
programs.ssh.hostKeyAlgorithms = [ "ssh-ed25519" ];
|
|
|
|
|
2021-11-21 18:11:47 +00:00
|
|
|
zramSwap.enable = lib.mkDefault true;
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2021-04-04 22:25:13 +00:00
|
|
|
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
|
2021-11-07 01:09:53 +00:00
|
|
|
|
2021-04-29 16:00:42 +00:00
|
|
|
nix = {
|
2022-02-18 16:50:16 +00:00
|
|
|
nixPath = [ ];
|
2021-11-24 18:51:53 +00:00
|
|
|
daemonCPUSchedPolicy = "idle";
|
2021-05-28 20:16:28 +00:00
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2021-04-29 16:00:42 +00:00
|
|
|
};
|
|
|
|
|
2020-09-24 05:45:48 +00:00
|
|
|
services = {
|
2022-09-03 02:53:25 +00:00
|
|
|
openssh.enable = true;
|
2021-11-12 16:09:04 +00:00
|
|
|
openssh.startWhenNeeded = true;
|
2020-09-24 05:45:48 +00:00
|
|
|
earlyoom.enable = true;
|
2021-11-12 16:09:04 +00:00
|
|
|
|
|
|
|
xserver = {
|
|
|
|
libinput.mouse.middleEmulation = false;
|
|
|
|
deviceSection = ''
|
|
|
|
Option "VariableRefresh" "true"
|
|
|
|
'';
|
|
|
|
};
|
2020-09-24 05:45:48 +00:00
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
}
|