fix(systemModules:pipewire): change host.function conditional
This commit is contained in:
		
							parent
							
								
									6908955b32
								
							
						
					
					
						commit
						8798c30cf2
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		|  | @ -3,16 +3,14 @@ | |||
| let | ||||
|   inherit (lib) mkIf; | ||||
|   inherit (lib.generators) toLua; | ||||
|   inherit (lib.lists) optionals; | ||||
|   inherit (builtins) elem; | ||||
|   hasBT = (elem "bluetooth" config.systemModules.hardware.features); | ||||
|   host = config.systemModules.host; | ||||
| 
 | ||||
|   validFunction = ["workstation" "gaming" "media-server"]; | ||||
|   inherit (lib.lists) any elem optionals; | ||||
|   # inherit (builtins) elem; | ||||
|   hasBT = (elem "bluetooth" config.systemModules.host.hardware.features); | ||||
|   hasFunction = f: elem f config.systemModules.host.function; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = mkIf (elem host.function validFunction) { | ||||
|   config = mkIf (any hasFunction ["workstation" "gaming" "media-server"]) { | ||||
|     hardware.pulseaudio.enable = !config.services.pipewire.enable; | ||||
|     security.rtkit.enable = config.services.pipewire.enable; | ||||
|     services.pipewire =  | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue