mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
fix: Add an upgrade
This commit is contained in:
committed by
mergify[bot]
parent
1a59c3d5ac
commit
aab67495e3
@@ -1,4 +1,9 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../../../common/cpu/amd
|
||||
../../../../common/cpu/amd/pstate.nix
|
||||
@@ -6,4 +11,14 @@
|
||||
../../../../common/pc/laptop
|
||||
../../../../common/pc/laptop/ssd
|
||||
];
|
||||
|
||||
# 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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user