1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-22 17:49:44 +01:00
nixos-hardware/microsoft/surface/common/default.nix
2023-08-02 07:18:18 +01:00

24 lines
593 B
Nix

{ lib, ... }:
let
inherit (lib) mkDefault;
in {
imports = [
./kernel
./ipts
./surface-control
];
microsoft-surface.kernelVersion = mkDefault "6.1.18";
# 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;
}