Skip to content

Commit

Permalink
feat(system/audio): hardware.pulseaudio option was deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
luisnquin committed Jan 20, 2025
1 parent 05f56e2 commit 676ee9c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions system/modules/audio.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
{pkgs, ...}: {
security.rtkit.enable = 0 == 0;
hardware.pulseaudio.enable = 0 != 0;
programs.noisetorch.enable = true;

# pulseaudio doesn't give a good support for some programs
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
services = {
pulseaudio.enable = 0 != 0;

pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};

# ALSA provides a udev rule for restoring volume settings.
udev.packages = [pkgs.alsa-utils];
};

# pulseaudio doesn't give a good support for some programs

environment.systemPackages = with pkgs; [
pulseaudio
alsa-utils
];

# ALSA provides a udev rule for restoring volume settings.
services.udev.packages = [pkgs.alsa-utils];

boot.kernelModules = ["snd_pcm_oss"];

systemd.services.alsa-store = {
Expand Down

0 comments on commit 676ee9c

Please sign in to comment.