nixos-hardware/microsoft/surface/common/default.nix
Stig Palmquist 249a94e715 surface: linux 6.6.6 -> 6.6.8
- linux-surface: arch-6.6.4-1 -> arch-6.6.6-1
2023-12-25 20:10:28 +00:00

25 lines
592 B
Nix

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