mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	purism librem5r4: add configuration option for audio
This commit is contained in:
		
				
					committed by
					
						
						Jörg Thalheim
					
				
			
			
				
	
			
			
			
						parent
						
							3284d0605c
						
					
				
				
					commit
					793de77d9f
				
			@@ -15,10 +15,25 @@ in {
 | 
			
		||||
      customInitrdModules = lib.mkEnableOption (lib.mdDoc "use of custom kernel modules in the initrd.");
 | 
			
		||||
      installUdevPackages = lib.mkEnableOption (lib.mdDoc "installation of udev packages from librem5-base.");
 | 
			
		||||
      lockdownFix = lib.mkEnableOption (lib.mdDoc "fix for orientation and proximity sensors not working after lockdown.");
 | 
			
		||||
      audio = lib.mkOption {
 | 
			
		||||
        description = lib.mdDoc ''
 | 
			
		||||
          Whether to enable and configure PulseAudio for the Librem5 modem.
 | 
			
		||||
 | 
			
		||||
          This is required for audio during calls to work at all.
 | 
			
		||||
        '';
 | 
			
		||||
        type = lib.types.bool;
 | 
			
		||||
        default = true;
 | 
			
		||||
        example = false;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  imports = [ ./initrd.nix ./wifi.nix ./lockdown-fix.nix ];
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./audio.nix
 | 
			
		||||
    ./initrd.nix
 | 
			
		||||
    ./wifi.nix
 | 
			
		||||
    ./lockdown-fix.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  config = {
 | 
			
		||||
    hardware.librem5 = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user