Completed centralized update

This commit is contained in:
Filippo Berto 2021-06-14 07:01:37 +02:00
parent ef5b48d142
commit 83c9c72688
15 changed files with 328 additions and 138 deletions

27
nixos/laptop.nix Normal file
View file

@ -0,0 +1,27 @@
{ 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;
}