mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	lenovo-thinkpad-z13-gen2: move to asound.conf
`sound.*` was removed upstream in Nixpkgs
This commit is contained in:
		
							
								
								
									
										9
									
								
								lenovo/thinkpad/z/gen2/z13/asound.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								lenovo/thinkpad/z/gen2/z13/asound.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
pcm.!default {
 | 
			
		||||
	type plug
 | 
			
		||||
	slave.pcm "hw:1,0"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ctl.!default {
 | 
			
		||||
	type hw
 | 
			
		||||
	card 1
 | 
			
		||||
}
 | 
			
		||||
@@ -5,15 +5,5 @@
 | 
			
		||||
    ../../../../../lenovo/thinkpad/z/gen2
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  sound.extraConfig = ''
 | 
			
		||||
    pcm.!default {
 | 
			
		||||
        type plug
 | 
			
		||||
        slave.pcm "hw:1,0"
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    ctl.!default {
 | 
			
		||||
        type hw
 | 
			
		||||
        card 1
 | 
			
		||||
    }
 | 
			
		||||
  '';
 | 
			
		||||
  environment.etc."asound.conf".source = ./asound.conf;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user