added pipewire
This commit is contained in:
parent
81f128265c
commit
f716a98d07
1 changed files with 16 additions and 0 deletions
16
modules/audio.nix
Normal file
16
modules/audio.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.modules.audio;
|
||||
in
|
||||
{
|
||||
options.modules.audio.enable = lib.mkEnableOption "Enables PipeWire";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
audio.enable = true;
|
||||
alsa.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue