add acer-wmi-battery kernel driver

This commit is contained in:
2025-08-01 21:57:35 +02:00
parent 59fdb864bc
commit 51ed79611d
3 changed files with 61 additions and 1 deletions
+10 -1
View File
@@ -1,6 +1,6 @@
{ lib, pkgs, ... }:
{
rec {
# Identity
networking.hostName = "acer"; # Define your hostname.
networking.hostId = "fc9583ce";
@@ -90,6 +90,15 @@
# For dev vm stuff
networking.firewall.trustedInterfaces = [ "br0" ];
# Battery driver
boot.extraModulePackages = [
# Super ugly hack, for some reason it's not included in pkgs.linuxKernel.packages.linux_6_12
# Despite being in overlays, something's not working
(pkgs.linuxPackages.acer-wmi-battery.override {
kernel = boot.kernelPackages.kernel;
})
];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave