dotfiles/nixos/physical/3950x.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2020-05-21 17:39:38 +02:00
{ config, pkgs, lib, ... }:
2021-05-29 18:05:31 +02:00
let sources = import ../../nix/sources.nix;
in {
imports = [
./.
./3950x-hardware-config.nix
"${sources.nixos-hardware}/common/cpu/amd"
];
2020-05-21 17:39:38 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "zfs" ];
boot.kernelModules = [ "nct6775" ];
2022-01-17 20:35:48 +01:00
boot.kernelPackages = pkgs.linuxPackages_5_15; # todo: zfs
2020-05-21 17:39:38 +02:00
networking.hostId = "c7736638";
services.zfs.autoScrub.enable = true;
services.zfs.trim.enable = true;
hardware.bluetooth.enable = true;
2020-05-21 17:39:38 +02:00
networking.useDHCP = false;
2021-05-23 17:19:28 +02:00
networking.usePredictableInterfaceNames = false;
networking.bridges.br0.interfaces = [ "eth0" ];
networking.interfaces.br0.useDHCP = true;
# systemd.network.links."98-namepolicy" = {
# matchConfig.OriginalName = "*";
# linkConfig.NamePolicy = "mac kernel database onboard slot path";
# };
boot.kernelParams = [
2021-05-29 18:05:31 +02:00
"amdgpu.ppfeaturemask=0xffffffff"
"amdgpu.noretry=0"
"amdgpu.lockup_timeout=1000"
"amdgpu.gpu_recovery=1"
"amdgpu.audio=0"
2021-05-23 17:19:28 +02:00
# thunderbolt
2021-05-29 18:05:31 +02:00
"pcie_ports=native"
"pci=assign-busses,hpbussize=0x33,realloc"
2021-05-23 17:19:28 +02:00
];
2020-05-21 17:39:38 +02:00
}