organize modules

This commit is contained in:
Satria 2026-02-07 13:44:48 +07:00
commit d0d4bf9ddb
21 changed files with 54 additions and 69 deletions

View file

@ -1,35 +1,21 @@
{ pkgs, ... }:
{
imports = [
./tzupdate.nix
./hibernation.nix
./igpu.nix
./cpu-thermal.nix
./battery-power.nix
./power-button.nix
./misc/battery-power.nix
./misc/power-button.nix
./misc/cpu-thermal.nix
./misc/tzupdate.nix
./core/hibernation.nix
./core/firmware.nix
./core/igpu.nix
./core/tpm.nix
];
security = {
tpm2 = {
enable = true;
pkcs11.enable = true;
tctiEnvironment.enable = true;
};
};
hardware = {
enableRedistributableFirmware = true; # T480 WiFi firmware fix
bluetooth = {
enable = true;
powerOnBoot = true;
};
};
hardware.bluetooth.enable = true;
boot = {
kernelPackages = pkgs.linuxPackages;
kernel.sysctl."vm.laptop_mode" = 5;
initrd.availableKernelModules = [ "thinkpad_acpi" ];
};
services.fwupd.enable = true;
}