move pipewire to audio

This commit is contained in:
smayzy
2025-07-07 19:34:00 +02:00
parent 2c5d8b19a6
commit 581025d19b
2 changed files with 1 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.audio.enable = mkOption {
type = types.bool;
default = false;
description = "audio settings";
};
config = mkIf config.smayzy.audio.enable {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}