Add ochsenchopf host

This commit is contained in:
Fabian Hauser 2022-04-17 09:56:30 +02:00
parent 75e2230bd6
commit 9be69627fe
5 changed files with 104 additions and 1 deletions

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, modulesPath, hardwareModules, ... }: {
imports = with hardwareModules; [
(modulesPath + "/installer/scan/not-detected.nix")
hardwareModules.lenovo-thinkpad-x1-9th-gen
];
boot.initrd.availableKernelModules = [
"xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"
"ahci"
"usbhid"
];
boot.kernelModules = [ "kvm-intel" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; # TODO: This should be moved to defaults
environment.systemPackages = with pkgs; [
modemmanager
libmbim
];
# CPU Configuration
hardware.cpu.intel.updateMicrocode = true;
services.throttled.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}