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

26 lines
573 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
inherit (lib) mkIf mkDefault;
cfg = config.myOptions.system.sound;
in {
imports = [ ./pipewire.nix ];
config = mkIf cfg.enable {
sound = {
enable = mkDefault false; # this just enables ALSA, which we don't really care abouyt
mediaKeys.enable = true;
};
2024-06-20 21:17:47 +00:00
environment.systemPackages = with pkgs; [
# TUI tool to manage sound devices & levels
# It's made for pulseaudio, but it will work with pipewire too since we
# run a compatibility layer for pulse
pulsemixer
];
2024-05-15 19:24:55 +00:00
};
}