2023-01-09 21:43:25 -05:00
|
|
|
{ lib, ... }:
|
2023-01-09 21:22:06 -05:00
|
|
|
|
2023-01-09 21:43:25 -05:00
|
|
|
let
|
|
|
|
inherit (lib) mkDefault;
|
|
|
|
|
|
|
|
in {
|
2023-01-09 21:22:06 -05:00
|
|
|
imports = [
|
|
|
|
./kernel
|
2023-01-09 21:59:44 -05:00
|
|
|
./ipts
|
2023-01-09 22:04:46 -05:00
|
|
|
./surface-control
|
2023-01-09 21:22:06 -05:00
|
|
|
];
|
2023-01-09 21:43:25 -05:00
|
|
|
|
2023-09-17 08:19:30 -04:00
|
|
|
microsoft-surface.kernelVersion = mkDefault "6.4.16";
|
2023-01-09 21:43:25 -05: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-09 21:22:06 -05:00
|
|
|
}
|