2024-06-25 22:08:33 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-04-16 20:54:43 +02:00
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/amd
|
|
|
|
../../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../../common/cpu/amd/raphael/igpu.nix
|
|
|
|
../../../../common/pc/laptop
|
|
|
|
../../../../common/pc/laptop/ssd
|
|
|
|
];
|
2024-06-25 22:08:33 +02:00
|
|
|
|
|
|
|
# Fixing a power-issue with older kernels.
|
|
|
|
# When powered off, the battery does not turn off completely.
|
2024-08-17 13:05:28 +02:00
|
|
|
# Kernel 6.6.35 apparently does not have this issue,
|
2024-06-25 22:08:33 +02:00
|
|
|
# the exact version is still unknown which fixed this.
|
2024-08-17 13:05:28 +02:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.35") (
|
2024-06-25 22:08:33 +02:00
|
|
|
if (config.boot.zfs.enabled)
|
|
|
|
then pkgs.zfs.latestCompatibleLinuxPackages
|
|
|
|
else pkgs.linuxPackages_latest
|
|
|
|
);
|
2024-04-16 20:54:43 +02:00
|
|
|
}
|