1
1
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
f38f84ea0c
pipewire: move hardware.pulseaudio to services
Signed-off-by: Myned <dev@bjork.tech>
2025-01-08 17:13:11 -06:00
df8d74d7ea
nixos.sh: fix arguments
Signed-off-by: Myned <dev@bjork.tech>
2025-01-08 17:12:45 -06:00
2 changed files with 24 additions and 21 deletions

View file

@ -37,7 +37,7 @@ _build() {
# Build and send closures to remote machine
if [[ "${argc_target:-}" ]]; then
nixos-rebuild --flake ".#${argc_target}" --target-host "root@${argc_target}" "$1" -- --show-trace ${argc_extra:+"${argc_extra[@]}"}
nixos-rebuild --flake ".#${argc_target}" --target-host "root@${argc_target}" "$1" --show-trace ${argc_extra:+"${argc_extra[@]}"}
else
# Build current system
if [[ "${argc_builder:-}" == nh ]]; then

View file

@ -9,30 +9,33 @@ in {
options.custom.services.pipewire.enable = mkOption {default = false;};
config = mkIf cfg.enable {
# https://wiki.nixos.org/wiki/PipeWire
# https://gitlab.freedesktop.org/pipewire/pipewire
#!! Realtime priority may cause desync
#// security.rtkit.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
services = {
pulseaudio.enable = false;
# Avoid resampling if possible
# https://wiki.archlinux.org/title/PipeWire#Changing_the_allowed_sample_rate(s)
extraConfig.pipewire = {
"10-sample-rate"."context.properties"."default.clock.allowed-rates" = [
32000
44100
48000
88200
96000
176400
192000
];
# https://wiki.nixos.org/wiki/PipeWire
# https://gitlab.freedesktop.org/pipewire/pipewire
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# Avoid resampling if possible
# https://wiki.archlinux.org/title/PipeWire#Changing_the_allowed_sample_rate(s)
extraConfig.pipewire = {
"10-sample-rate"."context.properties"."default.clock.allowed-rates" = [
32000
44100
48000
88200
96000
176400
192000
];
};
};
};
};