mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
		@@ -25,7 +25,7 @@ let
 | 
			
		||||
  overrideAudioFiles =
 | 
			
		||||
    package: pluginsPath:
 | 
			
		||||
    package.overrideAttrs (
 | 
			
		||||
      new: old: {
 | 
			
		||||
      _new: old: {
 | 
			
		||||
        preConfigurePhases = old.preConfigurePhases or [ ] ++ [ "postPatchPhase" ];
 | 
			
		||||
        postPatchPhase = ''
 | 
			
		||||
          cp -r ${audioFiles}/files/{profile-sets,paths} ${pluginsPath}/alsa/mixer/
 | 
			
		||||
@@ -106,11 +106,16 @@ in
 | 
			
		||||
      powerManagement.enable = true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    (if lib.versionAtLeast nixosVersion "25.05" then {
 | 
			
		||||
      services.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
 | 
			
		||||
    } else {
 | 
			
		||||
      hardware.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
 | 
			
		||||
    })
 | 
			
		||||
    (
 | 
			
		||||
      if lib.versionAtLeast nixosVersion "25.05" then
 | 
			
		||||
        {
 | 
			
		||||
          services.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
 | 
			
		||||
        }
 | 
			
		||||
      else
 | 
			
		||||
        {
 | 
			
		||||
          hardware.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
 | 
			
		||||
        }
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    (lib.mkIf t2Cfg.enableIGPU {
 | 
			
		||||
      # Enable the iGPU by default if present
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user