nixdots/system/shared/multimedia/sound/default.nix

20 lines
414 B
Nix
Raw Normal View History

2024-05-15 19:24:55 +00:00
{
config,
2024-06-20 21:17:47 +00:00
pkgs,
2024-05-15 19:24:55 +00:00
lib,
...
}: let
2024-07-16 09:12:32 +00:00
inherit (lib) mkIf;
2024-05-15 19:24:55 +00:00
cfg = config.myOptions.system.sound;
in {
2024-07-16 09:12:32 +00:00
imports = [./pipewire.nix];
2024-05-15 19:24:55 +00:00
config = mkIf cfg.enable {
2024-06-20 21:17:47 +00:00
environment.systemPackages = with pkgs; [
# TUI tool to manage sound devices & levels
2024-07-16 09:12:32 +00:00
# It's made for pulseaudio, but it will work with pipewire too since we
2024-06-20 21:17:47 +00:00
# run a compatibility layer for pulse
pulsemixer
];
2024-05-15 19:24:55 +00:00
};
}