purism librem5r4: add configuration option for audio

This commit is contained in:
Sophie Tauchert
2023-08-16 00:23:36 +02:00
committed by Jörg Thalheim
parent 3284d0605c
commit 793de77d9f
3 changed files with 42 additions and 4 deletions

View File

@@ -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 = {