PipeWire: Difference between revisions

imported>TheBrainScrambler
Forgot to add a description to my edit
imported>TheBrainScrambler
Explain how to make Pipewire run at boot. Since it's a user service you have to manually enable it
Line 22: Line 22:
   #jack.enable = true;
   #jack.enable = true;
};
};
</syntaxHighlight>
Note that because Pipewire runs with a user systemd service instead of a system service, it doesn't automatically start on boot. See https://nixos.org/manual/nixos/stable/#sect-nixos-systemd-nixos. To fix this:
<syntaxHighlight lang=bash>
$ mkdir -p ~/.config/systemd/user/default.target.wants
$ ln -s /run/current-system/sw/lib/systemd/user/pipewire.service ~/.config/systemd/user/default.target.wants/
$ ln -s /run/current-system/sw/lib/systemd/user/wireplumber.service ~/.config/systemd/user/default.target.wants/
$ systemctl --user daemon-reload
$ systemctl --user enable pipewire.service
$ systemctl --user enable wireplumber.service
</syntaxHighlight>
</syntaxHighlight>