1
0
Fork 0

Khanda: cleanup hardware-configuration

This commit is contained in:
Aires 2024-10-18 16:14:33 -04:00
parent 0e022cf390
commit 47e6064303
3 changed files with 8 additions and 30 deletions

View file

@ -30,10 +30,12 @@ in
initrd = {
availableKernelModules = [
"kvm-intel"
"surface_aggregator"
"surface_aggregator_registry"
"surface_aggregator_hub"
"surface_hid_core"
"surface_hid"
"hid_multitouch"
"8250_dw"
"intel_lpss"
@ -46,36 +48,8 @@ in
"surface_kbd"
"pinctrl_tigerlake"
];
kernelModules = [
"surface_aggregator"
"surface_aggregator_registry"
"surface_aggregator_hub"
"surface_hid_core"
"surface_hid"
"hid_multitouch"
"8250_dw"
"intel_lpss"
"intel_lpss_pci"
"surface_kbd"
"pinctrl_tigerlake"
];
};
kernelModules = [
"kvm-intel"
"surface_aggregator"
"surface_aggregator_registry"
"surface_aggregator_hub"
"surface_hid_core"
"surface_hid"
"hid_multitouch"
"8250_dw"
"intel_lpss"
"intel_lpss_pci"
"surface_kbd"
"pinctrl_tigerlake"
];
kernelParams = [
"pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm
];

View file

@ -14,6 +14,7 @@ in
options = {
aux.system.bluetooth = {
enable = lib.mkEnableOption "Enables bluetooth.";
experimental.enable = lib.mkEnableOption "Enables experimental features, like device power reporting.";
};
};
@ -22,7 +23,7 @@ in
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
settings = lib.mkIf cfg.experimental.enable {
General = {
Enable = "Source,Sink,Media,Socket";
Experimental = true;

View file

@ -26,7 +26,10 @@ in
config = lib.mkIf cfg.enable {
aux.system = {
bluetooth.enable = true;
bluetooth = {
enable = true;
experimental.enable = true;
};
packages = with pkgs; [
qjournalctl # Journalctl frontend
];