nix-config/modules/nix/audio/pipewire.nix
smayzy 092579af98
All checks were successful
nix flake show / show-flake (push) Successful in 27s
format with nixfmt to nixpkgs standarts
2025-07-24 19:19:46 +02:00

23 lines
462 B
Nix

{ config, lib, ... }:
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;
};
};
}