2023-01-22 14:17:51 +01:00
|
|
|
{
|
|
|
|
lib,
|
2023-09-26 22:25:58 +02:00
|
|
|
minimal,
|
2023-01-22 14:17:51 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
2023-09-26 22:25:58 +02:00
|
|
|
}:
|
|
|
|
lib.optionalAttrs (!minimal) {
|
2024-01-27 00:36:23 +01:00
|
|
|
# Sadly does not seem to do anything yet
|
|
|
|
#musnix = {
|
|
|
|
# enable = true;
|
|
|
|
# kernel= {
|
|
|
|
# realtime = true;
|
|
|
|
# packages = pkgs.linuxPackages_6_6_rt;
|
|
|
|
# };
|
|
|
|
#};
|
2023-01-22 14:17:51 +01:00
|
|
|
environment.systemPackages = with pkgs; [pulseaudio pulsemixer];
|
|
|
|
|
|
|
|
hardware.pulseaudio.enable = lib.mkForce false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
2023-01-22 14:53:39 +01:00
|
|
|
jack.enable = true;
|
2023-01-22 14:17:51 +01:00
|
|
|
pulse.enable = true;
|
|
|
|
};
|
2023-09-24 01:21:36 +02:00
|
|
|
environment.etc = {
|
|
|
|
# Allow pipewire to dynamically adjust the rate sent to the devices based on the playback stream
|
|
|
|
"pipewire/pipewire.conf.d/99-allowed-rates.conf".text = builtins.toJSON {
|
|
|
|
"context.properties"."default.clock.allowed-rates" = [
|
|
|
|
44100
|
|
|
|
48000
|
|
|
|
88200
|
|
|
|
96000
|
|
|
|
176400
|
|
|
|
192000
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-01-22 14:17:51 +01:00
|
|
|
|
2023-05-18 06:57:58 +02:00
|
|
|
sound.enable = false;
|
2023-01-22 14:17:51 +01:00
|
|
|
}
|