nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
497 stars 44 forks source link

sway: isNixOS override not working #426

Closed Scrumplex closed 9 months ago

Scrumplex commented 9 months ago

The NixOS module for sway overrides the package with isNixOS = true which changes some of the patches.

These don't get added to the sway-unwrapped package from this repo though as (I assume) overriding the derivation attributes before isNixOS was set makes us lose those patches.

Not sure if there is a satisfactory workaround, but as https://github.com/NixOS/nixpkgs/pull/259066 was merged, this causes issues with bwrap and Steam.

What it's supposed to do:

  1. Run /run/wrappers/bin/sway
  2. Sway elevates to realtime prio
  3. Sway drops ambient capabilities (NixOS patch)
  4. Steam is happy!

What it does right now:

  1. Run /run/wrappers/bin/sway
  2. Sway elevates to realtime prio
  3. Sway does not drop ambient capabilities (no NixOS patch)
  4. Steam is sad!