2023-01-10 02:43:25 +00:00
|
|
|
{ lib, ... }:
|
2023-01-10 02:22:06 +00:00
|
|
|
|
2023-01-10 02:43:25 +00:00
|
|
|
let
|
|
|
|
inherit (lib) mkDefault;
|
|
|
|
|
|
|
|
in {
|
2023-01-10 02:22:06 +00:00
|
|
|
imports = [
|
|
|
|
./kernel
|
2023-01-10 02:59:44 +00:00
|
|
|
./ipts
|
2023-01-10 03:04:46 +00:00
|
|
|
./surface-control
|
2023-01-10 02:22:06 +00:00
|
|
|
];
|
2023-01-10 02:43:25 +00:00
|
|
|
|
2023-10-05 13:55:13 +00:00
|
|
|
microsoft-surface.kernelVersion = mkDefault "6.5.5";
|
2023-01-10 02:43:25 +00: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 02:22:06 +00:00
|
|
|
}
|