dotfiles/nixos/physical/3950x.nix

34 lines
1.0 KiB
Nix
Raw Normal View History

2022-05-15 14:35:03 +02:00
{ config, pkgs, lib, inputs, ... }:
{
2021-05-29 18:05:31 +02:00
imports = [
./.
./3950x-hardware-config.nix
2022-05-15 15:39:25 +02:00
inputs.nixos-hardware.nixosModules.common-cpu-amd
2021-05-29 18:05:31 +02:00
];
2020-05-21 17:39:38 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "zfs" ];
2022-05-14 11:47:25 +02:00
boot.kernelModules = [ "nct6775" "i2c-dev" "i2c-piix4" ];
boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
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 = [
# 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
];
2022-05-14 11:47:25 +02:00
environment.systemPackages = [ pkgs.openrgb ];
2020-05-21 17:39:38 +02:00
}