2021-02-03 01:13:14 +01:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2022-01-25 07:57:07 +01:00
|
|
|
imports = [
|
|
|
|
./kernel
|
|
|
|
./firmware/surface-go/ath10k
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.extraModprobeConfig = lib.mkDefault ''
|
|
|
|
options i915 enable_fbc=1 enable_rc6=1 modeset=1
|
|
|
|
options snd_hda_intel power_save=1
|
|
|
|
options snd_ac97_codec power_save=1
|
|
|
|
options iwlwifi power_save=Y
|
|
|
|
options iwldvm force_cam=N
|
|
|
|
'';
|
|
|
|
|
|
|
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
|
|
|
|
|
|
|
# NOTE: Check the README before enabling TLP:
|
|
|
|
services.tlp.enable = lib.mkDefault false;
|
|
|
|
|
2022-01-25 07:57:50 +01:00
|
|
|
# i.e. needed for wifi firmware, see https://github.com/NixOS/nixos-hardware/issues/364
|
|
|
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
2022-01-25 07:57:07 +01:00
|
|
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
2021-02-03 01:13:14 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ surface-control ];
|
2021-03-17 20:46:55 +01:00
|
|
|
users.groups.surface-control = { };
|
2021-02-03 01:13:14 +01:00
|
|
|
services.udev.packages = [ pkgs.surface-control ];
|
2021-05-27 20:41:26 +02:00
|
|
|
systemd.services.iptsd = {
|
|
|
|
description = "IPTSD";
|
|
|
|
script = "${pkgs.iptsd}/bin/iptsd";
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
};
|
2021-01-23 07:36:37 +01:00
|
|
|
}
|