From d9de275780e6f6adab0784e4d98eeb8c919a6931 Mon Sep 17 00:00:00 2001 From: Paul Zinselmeyer Date: Wed, 28 Aug 2024 22:41:26 +0200 Subject: [PATCH] changed hardware config --- stube-pc/hardware-configuration.nix | 5 ++++- stube-pc/system.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stube-pc/hardware-configuration.nix b/stube-pc/hardware-configuration.nix index 5ce65c4..38fb3a4 100644 --- a/stube-pc/hardware-configuration.nix +++ b/stube-pc/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "sd_mod" "sr_mod" "usb_storage" ]; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" "radeon.cik_support=0" "amdgpu.cik_support=1" ]; boot.extraModulePackages = [ ]; @@ -52,5 +52,8 @@ networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; + hardware.enableRedistributableFirmware = true; + hardware.cpu.amd.updateMicrocode = true; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/stube-pc/system.nix b/stube-pc/system.nix index d6dec44..f9cc9be 100644 --- a/stube-pc/system.nix +++ b/stube-pc/system.nix @@ -52,6 +52,7 @@ enable = true; xkb.layout = "de"; desktopManager.xfce.enable = true; + videoDrivers = [ "displaylink" "modesetting" ]; }; services.displayManager = { enable = true;