Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NixOS Stable #57

Open
JoNilsson opened this issue May 5, 2024 · 9 comments
Open

Support NixOS Stable #57

JoNilsson opened this issue May 5, 2024 · 9 comments

Comments

@JoNilsson
Copy link

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.

@dagargo
Copy link
Owner

dagargo commented May 5, 2024

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.

@JoNilsson
Copy link
Author

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.

@dagargo
Copy link
Owner

dagargo commented May 5, 2024

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!

@JoNilsson
Copy link
Author

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

@duarteoctavio
Copy link

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.

@Are10
Copy link
Contributor

Are10 commented May 11, 2024

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

@JoNilsson
Copy link
Author

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.

@dag-h
Copy link

dag-h commented Jun 15, 2024

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

@Are10
Copy link
Contributor

Are10 commented Jul 6, 2024

@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; 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants