27 lines
641 B
Nix
27 lines
641 B
Nix
{ config, lib, ... }:
|
|
{
|
|
# SSD swappines
|
|
boot.kernel.sysctl = {
|
|
"vm.swappiness" = lib.mkDefault 1;
|
|
};
|
|
|
|
# Atheros WiFi module
|
|
boot.blacklistedKernelModules = lib.optionals (!config.hardware.enableRedistributableFirmware) [
|
|
"ath3k"
|
|
];
|
|
|
|
# ACPI support
|
|
boot = {
|
|
kernelModules = [ "acpi_call" ];
|
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
|
};
|
|
|
|
# Touchpad support
|
|
services.xserver.libinput.enable = lib.mkDefault true;
|
|
|
|
# SSD trim service
|
|
services.fstrim.enable = lib.mkDefault true;
|
|
|
|
# Hard disk protection if the laptop falls:
|
|
services.hdapsd.enable = lib.mkDefault true;
|
|
}
|