fix: battery not showing up

This commit is contained in:
Peritia 2025-09-10 14:35:16 +02:00
parent 509d173c1b
commit 237917a27f

View file

@ -39,7 +39,7 @@ in
# boot.kernelPackages = pkgs.linuxPackages_6_6; # normally set by nixos-hardware
# Extra kernel modules
boot.kernelModules = [ "hid-microsoft" ];
boot.kernelModules = [ "hid-microsoft" "battery" "ac" ];
# Initrd modules — required for Surface hardware to function
boot.initrd.kernelModules = [
@ -56,6 +56,16 @@ in
"8250_dw"
];
environment.systemPackages = with pkgs; [
#for camera
libcamera
# for Battery
tlp
upower
acpi
];
# IPTSd not required — touchscreen and pen work via HID
services.iptsd.enable = lib.mkForce false;