mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 14:35:30 -05:00
30 lines
968 B
Nix
30 lines
968 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
# Enable sound with pipewire.
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
# If you want to use JACK applications, uncomment this
|
|
#jack.enable = true;
|
|
|
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
# no need to redefine it in your config for now)
|
|
#media-session.enable = true;
|
|
};
|
|
systemd.user.services.pipewire-patching = {
|
|
enable = true;
|
|
description = "pipewire patches";
|
|
|
|
wantedBy = [ "default.target" ];
|
|
|
|
script = ''
|
|
pw-link alsa_input.pci-0000_0e_00.4.analog-stereo:capture_FL alsa_output.pci-0000_0e_00.4.iec958-stereo:playback_FL
|
|
pw-link alsa_input.pci-0000_0e_00.4.analog-stereo:capture_FR alsa_output.pci-0000_0e_00.4.iec958-stereo:playback_FR
|
|
'';
|
|
};
|
|
}
|