Compare commits

...

5 Commits

Author SHA1 Message Date
coolneng 032487f615
Revert "Remove redundant ACPI call"
This reverts commit cba0214a03.
2023-01-21 02:26:11 +01:00
coolneng edfc063dfd
Revert "Use intel-media-driver by default"
This reverts commit 28e01ee287.
2023-01-21 02:26:10 +01:00
coolneng 446b13d9de
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/befc83905c965adfd33e5cae49acb0351f6e0404' (2023-01-13)
  → 'github:NixOS/nixpkgs/d7705c01ef0a39c8ef532d1033bace8845a07d35' (2023-01-19)
2023-01-21 02:26:10 +01:00
coolneng 17c4d45fca
Disable upower 2023-01-21 02:26:10 +01:00
coolneng cbf4718195
Set PCIE ASPM settings via TLP 2023-01-21 02:26:09 +01:00
4 changed files with 13 additions and 12 deletions

View File

@ -13,11 +13,11 @@ with pkgs;
"nohibernate" "nohibernate"
"ipv6.disable=1" "ipv6.disable=1"
"ahci.mobile_lpm_policy=3" "ahci.mobile_lpm_policy=3"
"pcie_aspm=force"
"nmi_watchdog=0" "nmi_watchdog=0"
"intel_pstate=disable" "intel_pstate=disable"
]; ];
kernelModules = [ "i915" ]; kernelModules = [ "i915" "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
blacklistedKernelModules = [ "btusb" "bluetooth" ]; blacklistedKernelModules = [ "btusb" "bluetooth" ];
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];
zfs = { zfs = {
@ -33,8 +33,7 @@ with pkgs;
}; };
services.fwupd.enable = true; services.fwupd.enable = true;
hardware.opengl.extraPackages = hardware.opengl.extraPackages = [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
[ intel-media-driver vaapiIntel vaapiVdpau libvdpau-va-gl ];
# Bootloader configuration # Bootloader configuration
boot.loader = { boot.loader = {

View File

@ -38,11 +38,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1673631141, "lastModified": 1674120619,
"narHash": "sha256-AprpYQ5JvLS4wQG/ghm2UriZ9QZXvAwh1HlgA/6ZEVQ=", "narHash": "sha256-xLT1FQl7/jNPOEq5q/vmc3AExt1V9LtcjM+QY2+MUpA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "befc83905c965adfd33e5cae49acb0351f6e0404", "rev": "d7705c01ef0a39c8ef532d1033bace8845a07d35",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -13,7 +13,6 @@ let
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
export GIT_CONFIG_NOSYSTEM=true export GIT_CONFIG_NOSYSTEM=true
export SYSTEMD_LESS=FRSMK export SYSTEMD_LESS=FRSMK
export LIBVA_DRIVER_NAME=iHD
exec sway $@ exec sway $@
''; '';

View File

@ -2,7 +2,13 @@
{ {
# Enable the TLP daemon # Enable the TLP daemon
services.tlp.enable = true; services.tlp = {
enable = true;
settings = {
PCIE_ASPM_ON_AC = "performance";
PCIE_ASPM_ON_BAT = "powersave";
};
};
# Enable the auto-cpufreq daemon # Enable the auto-cpufreq daemon
services.auto-cpufreq.enable = true; services.auto-cpufreq.enable = true;
@ -24,9 +30,6 @@
# Prevent overheating of the CPU # Prevent overheating of the CPU
services.thermald.enable = true; services.thermald.enable = true;
# Provide power management support to programs
services.upower.enable = true;
# HACK Enable internal microphone when headphones are plugged in and add workaround for frequent WiFi disconnects # HACK Enable internal microphone when headphones are plugged in and add workaround for frequent WiFi disconnects
hardware.firmware = [ hardware.firmware = [
(pkgs.writeTextDir "/lib/firmware/hda-jack-retask.fw" '' (pkgs.writeTextDir "/lib/firmware/hda-jack-retask.fw" ''