mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
22 lines
558 B
Nix
22 lines
558 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
inherit (lib) mkDefault;
|
|
|
|
in {
|
|
imports = [
|
|
./kernel
|
|
];
|
|
|
|
microsoft-surface.kernelVersion = mkDefault "6.10";
|
|
|
|
# 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;
|
|
}
|