26 lines
706 B
Nix
26 lines
706 B
Nix
{ grimm-shared-inputs, pkgs, config, lib, ... }: let
|
|
cfg = config.grimmShared;
|
|
in {
|
|
config = with cfg; lib.mkIf (enable && sound) {
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true; # osu uses jack
|
|
lowLatency.enable = true;
|
|
systemWide = true; # required for spotifyd as spotifyd runs as the spotifyd user
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
(callPackage ../custom/pwvucontrol/package.nix {})
|
|
# pwvucontrol
|
|
playerctl
|
|
pulseaudio
|
|
];
|
|
};
|
|
}
|