puzzlevision/modules/nixos/common/audio/default.nix
Jo e1bbf4856e refactor: clean up unused imports
refactor: remove some comments
feat: set VSCodium color scheme to Catppuccin Macchiato
2024-12-03 18:38:19 +01:00

23 lines
496 B
Nix

{
lib,
namespace,
config,
...
}: with lib; with lib.${namespace};
let
cfg = config.${namespace}.common.audio;
in {
options.${namespace}.common.audio = { enable = mkEnableOption "whether to enable common audio support and tweaks"; };
config = mkIf cfg.enable {
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}