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
|
|
|
|
2022-10-04 10:39:49 +02:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
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" ];
|
2022-05-14 11:46:32 +02:00
|
|
|
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;
|
2021-01-02 20:50:12 +01:00
|
|
|
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
|
|
|
}
|