1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-09-20 05:17:22 +02:00
nixos-hardware/tuxedo/pulse/14/gen3/default.nix

25 lines
650 B
Nix
Raw Normal View History

2024-06-25 22:08:33 +02:00
{
lib,
pkgs,
config,
...
}: {
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.
# Kernel 6.8.12 fixes this,
# the exact version is still unknown which fixed this.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.8.12") (
if (config.boot.zfs.enabled)
then pkgs.zfs.latestCompatibleLinuxPackages
else pkgs.linuxPackages_latest
);
}