Compare commits

...

5 Commits

Author SHA1 Message Date
coolneng 325361c82a
Revert "Remove redundant ACPI call"
This reverts commit cba0214a03.
2023-01-21 02:09:34 +01:00
coolneng cf6448ee1d
Revert "Use intel-media-driver by default"
This reverts commit 28e01ee287.
2023-01-21 01:54:53 +01:00
coolneng 0b8b9d3b28 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-20 22:31:51 +01:00
coolneng 2b34e5bb72
Disable upower 2023-01-20 21:58:43 +01:00
coolneng 5e43cdc16c
Set PCIE ASPM settings via TLP 2023-01-20 21:48:16 +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 = "powersupersave";
};
};
# 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" ''