nixos/modules/hardware/sound/default.nix
Felix Buehler 024097cbb6
Some checks are pending
/ Build Nix targets (push) Waiting to run
hardware/sound: use pipewire
2025-12-29 12:24:50 +01:00

41 lines
626 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.sound;
in
{
options.my.hardware.sound = {
enable = lib.mkEnableOption "sound configuration with pipewire";
};
config = lib.mkIf cfg.enable {
# RealtimeKit is recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
};
programs.noisetorch.enable = true;
environment.systemPackages = with pkgs; [
noisetorch
playerctl
pwvucontrol
];
};
}