diff --git a/hosts/mhelton-fw13/default.nix b/hosts/mhelton-fw13/default.nix index bf27b999..0908d60e 100644 --- a/hosts/mhelton-fw13/default.nix +++ b/hosts/mhelton-fw13/default.nix @@ -78,9 +78,21 @@ sbctl slack pkgs.gnomeExtensions.appindicator + gnome-network-displays ]; services.udev.packages = [ pkgs.gnome-settings-daemon ]; + networking.firewall.trustedInterfaces = [ "p2p-wl+" ]; + + networking.firewall.allowedTCPPorts = [ + 7236 + 7250 + ]; + networking.firewall.allowedUDPPorts = [ + 7236 + 5353 + ]; + programs.obs-studio = { enable = true; plugins = with pkgs.obs-studio-plugins; [ diff --git a/overlays/default.nix b/overlays/default.nix index 9ab691f0..11cdef2b 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -31,6 +31,19 @@ let }; }); + gnome-network-displays = prev.gnome-network-displays.overrideAttrs (oldAttrs: { + postPatch = (oldAttrs.postPatch or "") + '' + # Find the nd-stream.c file and patch it + echo "Looking for nd-stream.c file..." + find . -name "nd-stream.c" -type f | while read -r file; do + echo "Found file at: $file" + substituteInPlace "$file" \ + --replace "XDP_OUTPUT_MONITOR | XDP_OUTPUT_WINDOW | XDP_OUTPUT_VIRTUAL" \ + "XDP_OUTPUT_MONITOR" + done + ''; + }); + pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ (self: super: { # skip additional tests that seem to require network access