switch to latest kernel, bump hardware config, drop unused tlp
This commit is contained in:
parent
be95925e38
commit
9cf426c08c
|
@ -20,7 +20,7 @@ in
|
||||||
services.davfs2.enable = true;
|
services.davfs2.enable = true;
|
||||||
|
|
||||||
# try newer kernels
|
# try newer kernels
|
||||||
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# use old kernel because 5.4 and 5.5 might be buggy with intel graphics
|
# use old kernel because 5.4 and 5.5 might be buggy with intel graphics
|
||||||
#boot.kernelPackages = pkgs.linuxPackages_4_19;
|
#boot.kernelPackages = pkgs.linuxPackages_4_19;
|
||||||
|
@ -42,16 +42,6 @@ in
|
||||||
};
|
};
|
||||||
boot.kernel.sysctl."vm.swappiness" = 9;
|
boot.kernel.sysctl."vm.swappiness" = 9;
|
||||||
|
|
||||||
# powermanagement
|
|
||||||
services.tlp =
|
|
||||||
{
|
|
||||||
enable = false;
|
|
||||||
settings = {
|
|
||||||
"SATA_LINKPWR_ON_BAT" = "medium_power";
|
|
||||||
"SATA_LINKPWR_ON_AC" = "max_performance";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
(
|
(
|
||||||
builtins.fetchGit {
|
builtins.fetchGit {
|
||||||
url = "https://github.com/NixOS/nixos-hardware";
|
url = "https://github.com/NixOS/nixos-hardware";
|
||||||
rev = "7883883d135ce5b7eae5dce4bfa12262b85c1c46";
|
rev = "a4bc66709604ab78abc575b60baa6d23ae027a59";
|
||||||
} + "/lenovo/thinkpad/t440s"
|
} + "/lenovo/thinkpad/t440s"
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue