Skip to content

immersed: add option to open firewall ports and libraries for hardware encoding support #399766

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Occhioverde
Copy link

@Occhioverde Occhioverde commented Apr 18, 2025

This Pull Request updates Immersed NixOS Module and Package to:

  • Add an option to open the firewall ports used by the application
  • Include the libraries needed to support hardware encoding with Intel, Nvidia and AMD GPUs (libva, intel-media-driver, intel-vaapi-driver, nvidia-vaapi-driver and mesa)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Apr 18, 2025
@NixOSInfra NixOSInfra added the 12.first-time contribution This PR is the author's first one; please be gentle! label Apr 18, 2025
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 18, 2025
@nix-owners nix-owners bot requested review from haruki7049 and Pandapip1 April 18, 2025 15:18
@@ -25,6 +25,8 @@ appimageTools.wrapAppImage {

extraPkgs =
pkgs: with pkgs; [
libva
intel-media-driver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well add all the other common VAAPI backends.

Suggested change
intel-media-driver
# VAAPI backends
intel-media-driver
intel-vaapi-driver
nvidia-vaapi-driver
mesa
# Other dependencies

See https://wiki.archlinux.org/title/Hardware_video_acceleration for a description of the various backends. I'm not quite confident that mesa will work to add AMD vaapi support, but we'll see.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't included the other backends as I miss the hardware to test whether their setup actually works, but we can indeed add them and wait for feedback by someone who can give them a try.

@Occhioverde Occhioverde requested a review from Pandapip1 April 21, 2025 14:29
@Occhioverde Occhioverde changed the title immersed: add option to open firewall ports and Intel hardware encoding support immersed: add option to open firewall ports and libraries for hardware encoding support Apr 21, 2025
@Pandapip1 Pandapip1 added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Aug 13, 2025
@Pandapip1
Copy link
Member

allowPorts is somewhat non-standard naming (openFirewall seems to be more common) but LGTM. I'm happy to open a follow-up PR renaming the option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants