mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
refactor: modularize audio-prod, audio, wsl, wine, networking
This commit is contained in:
parent
5cbd9e60cb
commit
ee6f29eb57
9 changed files with 200 additions and 73 deletions
|
@ -1,14 +1,27 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.liminalOS.system.audio;
|
||||
in
|
||||
{
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
options.liminalOS.system.audio.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = config.liminalOS.linux.enable;
|
||||
description = ''
|
||||
Whether to set up PipeWire and default audio utilities.
|
||||
'';
|
||||
};
|
||||
|
||||
services.playerctld.enable = true;
|
||||
config = {
|
||||
services.playerctld.enable = lib.mkIf cfg.enable true;
|
||||
hardware.pulseaudio.enable = lib.mkIf cfg.enable false;
|
||||
# TODO: move to other file
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue