mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
		@@ -18,7 +18,6 @@ in
 | 
			
		||||
  services.udev.extraRules =
 | 
			
		||||
    # Disable XHC1 wakeup signal to avoid resume getting triggered some time
 | 
			
		||||
    # after suspend. Reboot required for this to take effect.
 | 
			
		||||
    lib.optionalString
 | 
			
		||||
      (lib.versionAtLeast kernelPackages.kernel.version "3.13")
 | 
			
		||||
    lib.optionalString (lib.versionAtLeast kernelPackages.kernel.version "3.13")
 | 
			
		||||
      ''SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"'';
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,9 @@
 | 
			
		||||
{ lib, pkgs, modulesPath, ... }:
 | 
			
		||||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  modulesPath,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
@@ -19,7 +24,7 @@
 | 
			
		||||
    powerDownCommands = lib.mkBefore ''
 | 
			
		||||
      ${pkgs.kmod}/bin/rmmod -f -v brcmfmac_wcc 2>/dev/null || true
 | 
			
		||||
      ${pkgs.kmod}/bin/rmmod brcmfmac
 | 
			
		||||
      '';
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # USB subsystem wakes up MBP right after suspend unless we disable it.
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,8 @@
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
}:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../.
 | 
			
		||||
    ../../../common/cpu/intel/kaby-lake
 | 
			
		||||
@@ -15,7 +16,12 @@
 | 
			
		||||
  # https://www.kernelconfig.io/config_keyboard_applespi
 | 
			
		||||
 | 
			
		||||
  boot = {
 | 
			
		||||
    initrd.kernelModules = ["applespi" "spi_pxa2xx_platform" "intel_lpss_pci" "applesmc" ];
 | 
			
		||||
    initrd.kernelModules = [
 | 
			
		||||
      "applespi"
 | 
			
		||||
      "spi_pxa2xx_platform"
 | 
			
		||||
      "intel_lpss_pci"
 | 
			
		||||
      "applesmc"
 | 
			
		||||
    ];
 | 
			
		||||
    kernelParams = [ "intel_iommu=on" ];
 | 
			
		||||
    kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
 | 
			
		||||
  };
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,9 @@
 | 
			
		||||
{ config, lib, pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user