2024-10-01 09:23:36 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.modules.hardware.pipewire;
|
|
|
|
in {
|
|
|
|
options.modules.hardware.pipewire = { enable = lib.mkEnableOption false; };
|
2023-07-08 20:53:43 +04:00
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-07-08 20:53:43 +04:00
|
|
|
# resolve racial conflict between
|
|
|
|
# pulseaudio and pipewire
|
2024-08-09 17:55:44 +04:00
|
|
|
# its deprecated now the west has fallen
|
|
|
|
# sound.enable = lib.mkDefault false;
|
2023-07-08 20:53:43 +04:00
|
|
|
|
2023-07-30 17:50:31 +04:00
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
|
2023-07-08 20:53:43 +04:00
|
|
|
# what is this for will source games
|
|
|
|
# still work what
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
2024-09-26 20:46:14 +04:00
|
|
|
jack.enable = true;
|
2023-07-08 20:53:43 +04:00
|
|
|
pulse.enable = true;
|
|
|
|
};
|
2024-10-01 09:23:36 +04:00
|
|
|
|
|
|
|
# unsupported apps that use these
|
|
|
|
environment.systemPackages = with pkgs; [ pulseaudio alsa-utils pamixer ];
|
|
|
|
|
2023-07-08 20:53:43 +04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|