dotfiles/nixos/physical/3950x.nix

34 lines
1.0 KiB
Nix

{ config, pkgs, lib, inputs, ... }:
{
imports = [
./.
./3950x-hardware-config.nix
inputs.nixos-hardware.nixosModules.common-cpu-amd
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "zfs" ];
boot.kernelModules = [ "nct6775" "i2c-dev" "i2c-piix4" ];
boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
networking.hostId = "c7736638";
services.zfs.autoScrub.enable = true;
services.zfs.trim.enable = true;
hardware.bluetooth.enable = true;
networking.useDHCP = false;
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 = [
# thunderbolt
"pcie_ports=native"
"pci=assign-busses,hpbussize=0x33,realloc"
];
environment.systemPackages = [ pkgs.openrgb ];
}