Moved modules into appropriate folders

This commit is contained in:
pazpi 2024-08-27 11:09:20 +02:00
parent 48dcf38304
commit 3760c929fe
9 changed files with 18 additions and 8 deletions

29
modules/desktop/audio.nix Normal file
View file

@ -0,0 +1,29 @@
{
lib,
config,
pkgs,
...
}:
let
cfg = config.audio;
in
{
options.audio = {
enable = lib.mkEnableOption "Enable sound module";
};
config = lib.mkIf cfg.enable {
# Enable sound with pipewire.
services.pipewire = {
enable = true;
audio.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
hardware.pulseaudio.enable = false;
};
}