NixOS/system/modules/audio.nix

17 lines
314 B
Nix
Raw Normal View History

2024-06-12 18:09:56 +07:00
{ config, lib, ... }:
let
cfg = config.profile.audio;
in
2024-06-12 09:54:11 +07:00
{
2024-06-12 18:09:56 +07:00
config = lib.mkIf cfg.enable {
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
2024-06-12 09:54:11 +07:00
};
}