mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-14 04:33:17 +00:00
66 lines
1.8 KiB
Nix
Executable file
66 lines
1.8 KiB
Nix
Executable file
{config, pkgs, ...}:
|
|
{
|
|
### PIPEWIRE ###
|
|
hardware.pulseaudio.enable = true;
|
|
hardware.pulseaudio.support32Bit = true;
|
|
nixpkgs.config.pulseaudio = true;
|
|
# sound
|
|
# security.rtkit.enable = true;
|
|
# services.pipewire = {
|
|
# enable = true;
|
|
# alsa.enable = true;
|
|
# alsa.support32Bit = true;
|
|
# #jack.enable = true;
|
|
# pulse.enable = true;
|
|
# media-session.enable = true;
|
|
# };
|
|
# config = {
|
|
# pipewire = {
|
|
# "context.properties" = {
|
|
# # Properties for the DSP configuration.
|
|
# "default.clock.rate" = 48000;
|
|
# "default.clock.quantum" = 256;
|
|
# "default.clock.min-quantum" = 16;
|
|
# };
|
|
# };
|
|
# };
|
|
#
|
|
# config.pipewire-pulse = {
|
|
# "context.properties" = {
|
|
# "log.level" = 2;
|
|
# };
|
|
# "context.modules" = [
|
|
# {
|
|
# name = "libpipewire-module-rtkit";
|
|
# args = {
|
|
# "nice.level" = -15;
|
|
# "rt.prio" = 88;
|
|
# "rt.time.soft" = 200000;
|
|
# "rt.time.hard" = 200000;
|
|
# };
|
|
# flags = [ "ifexists" "nofail" ];
|
|
# }
|
|
# { name = "libpipewire-module-protocol-native"; }
|
|
# { name = "libpipewire-module-client-node"; }
|
|
# { name = "libpipewire-module-adapter"; }
|
|
# { name = "libpipewire-module-metadata"; }
|
|
# {
|
|
# name = "libpipewire-module-protocol-pulse";
|
|
# args = {
|
|
# "pulse.min.req" = "32/48000";
|
|
# "pulse.default.req" = "32/48000";
|
|
# "pulse.max.req" = "32/48000";
|
|
# "pulse.min.quantum" = "32/48000";
|
|
# "pulse.max.quantum" = "32/48000";
|
|
# "server.address" = [ "unix:native" ];
|
|
# };
|
|
# }
|
|
# ];
|
|
# "stream.properties" = {
|
|
# "node.latency" = "32/48000";
|
|
# "resample.quality" = 1;
|
|
# };
|
|
# };
|
|
# };
|
|
}
|