Nix and other configuration files for PyConZA Stream PCs
- Make sure that your user name is streamer
- Install nix with
curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh, which should be the same as the officially documented installation method. - Clone this config repo when in the home directory with
git clone https://github.com/PyConZA/stream_pc_config.git- Allow developer tools to be installed in order to use git.
- Move pre-existing managed config files that will cause nix-darwin to abort installation:
- First restart shell if you haven't already to make sure nix is working.
sudo mv /etc/bashrc /etc/bashrc.before-nix-darwin && sudo mv /etc/zshrc /etc/zshrc.before-nix-darwin
- Install nix-darwin:
sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/stream_pc_config#stream-pc - Restart the shell to get
darwin-rebuildcommand to work - To update the system after changes to the flake, use:
sudo darwin-rebuild switch --flake ~/stream_pc_config#stream-pc
- Install
apps/AudioControlBarV1.2.0.dmgthe old fashioned way (double click, drag and drop)- Start it and in its settings, enable launch at login.
- In loopback, setup three loopback audio devices, all configured the same way, as shown and named in this image:

- Setup an audio pipeline in Audio Hijack as shown below:
You may want to change the microphone orders once you know which mic is which.
You may also want to adjust sync delay to match the camera delay.
- In OBS -> Preferences -> General -> Projectors enable
Limit to one full-screen projector per screen1 - Import the profile and scene collection that is in
obs. - Open Scripts -> Python Settings and use the following path to link Python to OBS:
/opt/homebrew/Cellar/python@3.11/3.11.16/Frameworks/or similar, depending on version. - Open Scripts, and load the script
obs/project_mapped_scene.pyand configure the mapped scenes to be something like so:- Scenes[Upcoming, Laptop and Camera, Laptop ONly, Camera Only, Remote Talk, Finish]
- Mapped projector Scenes[Upcoming, Laptop Only, Laptop Only, Laptop Only, Remote Talk, Finish]