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:59:44 +01:00
|
|
|
./ipts
|
2023-01-10 04:04:46 +01:00
|
|
|
./surface-control
|
2023-01-10 03:22:06 +01:00
|
|
|
];
|
2023-01-10 03:43:25 +01:00
|
|
|
|
2023-08-29 02:28:09 +02:00
|
|
|
microsoft-surface.kernelVersion = mkDefault "6.4.12";
|
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
|
|
|
}
|