nixos-hardware/microsoft/surface/default.nix

30 lines
572 B
Nix
Raw Normal View History

2022-12-31 05:52:38 -05:00
{ lib, pkgs, ... }:
2022-12-04 22:01:37 -05:00
let
inherit (lib) mkDefault;
in {
imports = [
./common
./surface-go/firmware/ath10k
];
2022-12-04 22:01:37 -05:00
boot.extraModprobeConfig = 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
'';
2022-12-04 22:01:37 -05:00
environment.systemPackages = [
pkgs.surface-control
];
2021-03-17 15:46:55 -04:00
users.groups.surface-control = { };
2022-12-04 22:01:37 -05:00
services.udev.packages = [
pkgs.surface-control
];
microsoft-surface.ipts.enable = true;
}