2023-01-10 03:43:25 +01:00
|
|
|
{ lib, ... }:
|
2023-01-10 03:22:06 +01:00
|
|
|
|
2023-01-10 03:43:25 +01:00
|
|
|
let
|
|
|
|
inherit (lib) mkDefault;
|
|
|
|
|
|
|
|
in {
|
2023-01-10 03:22:06 +01:00
|
|
|
imports = [
|
|
|
|
./kernel
|
|
|
|
];
|
2023-01-10 03:43:25 +01:00
|
|
|
|
2024-01-07 01:47:34 +01:00
|
|
|
microsoft-surface.kernelVersion = mkDefault "6.6";
|
2023-01-10 03:43:25 +01:00
|
|
|
|
|
|
|
# Seems to be required to properly enable S0ix "Modern Standby":
|
|
|
|
boot.kernelParams = mkDefault [ "mem_sleep_default=deep" ];
|
|
|
|
|
|
|
|
# NOTE: Check the README before enabling TLP:
|
|
|
|
services.tlp.enable = mkDefault false;
|
|
|
|
|
|
|
|
# i.e. needed for wifi firmware, see https://github.com/NixOS/nixos-hardware/issues/364
|
|
|
|
hardware.enableRedistributableFirmware = mkDefault true;
|
|
|
|
hardware.sensor.iio.enable = mkDefault true;
|
2023-01-10 03:22:06 +01:00
|
|
|
}
|