mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-25 19:19:44 +01:00
microsoft/surface: just inline hardware_configuration
Everything in nixos-hardware should be hardware configuration after all.
This commit is contained in:
parent
5f284638e8
commit
ac391b7104
2 changed files with 19 additions and 19 deletions
|
@ -1,6 +1,23 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
imports =
|
imports = [
|
||||||
[ ./kernel ./hardware_configuration.nix ./firmware/surface-go/ath10k ];
|
./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;
|
||||||
|
|
||||||
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ surface-control ];
|
environment.systemPackages = with pkgs; [ surface-control ];
|
||||||
users.groups.surface-control = { };
|
users.groups.surface-control = { };
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
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;
|
|
||||||
|
|
||||||
hardware.sensor.iio.enable = lib.mkDefault true;
|
|
||||||
}
|
|
Loading…
Reference in a new issue