Khanda: cleanup hardware-configuration
This commit is contained in:
parent
0e022cf390
commit
47e6064303
|
@ -30,10 +30,12 @@ in
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [
|
availableKernelModules = [
|
||||||
|
"kvm-intel"
|
||||||
"surface_aggregator"
|
"surface_aggregator"
|
||||||
"surface_aggregator_registry"
|
"surface_aggregator_registry"
|
||||||
"surface_aggregator_hub"
|
"surface_aggregator_hub"
|
||||||
"surface_hid_core"
|
"surface_hid_core"
|
||||||
|
"surface_hid"
|
||||||
"hid_multitouch"
|
"hid_multitouch"
|
||||||
"8250_dw"
|
"8250_dw"
|
||||||
"intel_lpss"
|
"intel_lpss"
|
||||||
|
@ -46,36 +48,8 @@ in
|
||||||
"surface_kbd"
|
"surface_kbd"
|
||||||
"pinctrl_tigerlake"
|
"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 = [
|
kernelParams = [
|
||||||
"pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm
|
"pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm
|
||||||
];
|
];
|
||||||
|
|
|
@ -14,6 +14,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
aux.system.bluetooth = {
|
aux.system.bluetooth = {
|
||||||
enable = lib.mkEnableOption "Enables bluetooth.";
|
enable = lib.mkEnableOption "Enables bluetooth.";
|
||||||
|
experimental.enable = lib.mkEnableOption "Enables experimental features, like device power reporting.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ in
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
settings = {
|
settings = lib.mkIf cfg.experimental.enable {
|
||||||
General = {
|
General = {
|
||||||
Enable = "Source,Sink,Media,Socket";
|
Enable = "Source,Sink,Media,Socket";
|
||||||
Experimental = true;
|
Experimental = true;
|
||||||
|
|
|
@ -26,7 +26,10 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
aux.system = {
|
aux.system = {
|
||||||
bluetooth.enable = true;
|
bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
experimental.enable = true;
|
||||||
|
};
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
qjournalctl # Journalctl frontend
|
qjournalctl # Journalctl frontend
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue