1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-08 20:19:40 +01:00
nixos-hardware/framework/16-inch/common/amd.nix

15 lines
594 B
Nix
Raw Normal View History

2024-04-15 21:34:04 +02:00
{ lib, config, ... }: {
imports = [
../../../common/cpu/amd
../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
2024-04-15 21:34:04 +02:00
];
# Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/
boot.kernelParams = lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") ["rtc_cmos.use_acpi_alarm=1"] ;
# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
}