[host/helix-texta] Tweak config to appease power and temp gods

This commit is contained in:
Malte Tammena 2022-05-28 15:53:38 +02:00
parent dd40be2357
commit d260e65004

View file

@ -10,14 +10,16 @@
availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"]; availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
luks.devices."enc".device = "/dev/disk/by-uuid/1f1e51d6-3084-4f4d-9b4b-6caa0352f542"; luks.devices."enc".device = "/dev/disk/by-uuid/1f1e51d6-3084-4f4d-9b4b-6caa0352f542";
}; };
kernelModules = ["kvm-intel" "acpi-call"]; kernelModules = ["kvm-intel" "acpi_call"];
extraModulePackages = with config.boot.kernelPackages; [acpi_call];
#blacklistedKernelModules = [ "nvidia" ]; #blacklistedKernelModules = [ "nvidia" ];
supportedFilesystems = ["btrfs"]; supportedFilesystems = ["btrfs"];
kernelParams = ["acpi_backlight=native"];
}; };
powerManagement = { powerManagement = {
enable = true; enable = true;
cpuFreqGovernor = "ondemand"; cpuFreqGovernor = "powersave";
powertop.enable = true; powertop.enable = true;
}; };
@ -25,7 +27,7 @@
enable = true; enable = true;
settings = { settings = {
START_CHARGE_THRESH_BAT0 = 75; START_CHARGE_THRESH_BAT0 = 75;
STOP_CHARGE_THRESH_BAT0 = 80; STOP_CHARGE_THRESH_BAT0 = 85;
}; };
}; };
@ -45,10 +47,10 @@
# Enable bluetooth # Enable bluetooth
bluetooth.enable = true; bluetooth.enable = true;
nvidia.modesetting.enable = true; nvidia.modesetting.enable = false;
nvidia.powerManagement.enable = true; nvidia.powerManagement.enable = true;
nvidia.prime = { nvidia.prime = {
offload.enable = true; offload.enable = false;
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0"; intelBusId = "PCI:0:2:0";
}; };
@ -71,7 +73,7 @@
}; };
services.blueman.enable = true; services.blueman.enable = true;
services.xserver.videoDrivers = lib.mkForce ["nvidia"]; #services.xserver.videoDrivers = lib.mkForce ["nvidia"];
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;}; vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};