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

View File

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

View File

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

View File

@ -2,7 +2,13 @@
{
# 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
services.auto-cpufreq.enable = true;
@ -24,9 +30,6 @@
# Prevent overheating of the CPU
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
hardware.firmware = [
(pkgs.writeTextDir "/lib/firmware/hda-jack-retask.fw" ''