dagargo / overwitch

JACK client for Overbridge devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support NixOS Stable

JoNilsson opened this issue · comments

Wondering if anyone has integrated Overwitch into a NixOS build? Or, are there any plans to do so?

Would be lovely to have this in the Nix package repository. NixOS is fabulous for building stable realtime audio workstations.

AFAIK, there are no Overwitch packages for NixOS or any other distribution. I haven't tried either.

I'm planning on creating Flatpak package though.

Real-time kernel access would undoubtedly suffer from within the sandbox of a flatpak.
Flatpak by nature is designed to sandbox an app, limiting access to the system. It's good for security, but sucks for audio.
Access to system level real-time processing (ie: using sched_setscheduler() etc.) is going to be a major PITA from within a flatpak.

It might be possible, but I personally would not count on a flatpak to reliably deliver a good integration into a low latency real-time audio system.

NixOS adopts a fundamentally different approach to sandboxing, with none of the caveats that make flatpak an anti-pattern for pro-audio production.

I didn't know any of that.

I expected the sandboxing to be transparent and just an isolation layer. I'll investigate this further,

Thanks for the heads up!

I forked your repo, and I'll volunteer to maintain a nix package for the project if nobody else is doing so.

Hello, Jø! I also though about doing it. I don't know how experienced you are in Nix packaging. I have no experience in publishing packages but I've got more and more acquainted with the language and I've created some local packages for my system already.

If you are interested in collaboration, we can do it together.

It seems like work is already underway for this: NixOS/nixpkgs#165104
Edit: Derped on the correct link

It seems like work is already underway for this: NixOS/nixpkgs#165104

Excellent. had neglected to see this prior. Mea Culpa.
Seems that work is started and stalled awaiting participation?

The PR is still open, here:
NixOS/nixpkgs#269278

So, it would appear there needs to be some help lent to merge the PR.

Sorry I haven’t finished up the PR, should only be some final touches left. I’ll get to it some time next week.

@JoNilsson
I've created a nix flake for overwitch, should you want to play with it today.
It's over on https://github.com/Are10/flake-overwitch

flake.nix

   inputs.overwitch = {
       url = "github:Are10/flake-overwitch/main";
       inputs.nixpkgs.follows = "nixpkgs";
  };
  modules = [
    inputs.overwitch.nixosModules.default
  ];

configuration.nix

services.overwitch.enable = true;