Skip to content

Instantly share code, notes, and snippets.

@fpletz
Created July 28, 2023 19:10
Show Gist options
  • Save fpletz/6909679cf09f0a6389236a29d85e35a5 to your computer and use it in GitHub Desktop.
Save fpletz/6909679cf09f0a6389236a29d85e35a5 to your computer and use it in GitHub Desktop.
NixOS home-manager wayland screensharing
{ pkgs, ... }:
{
services.pipewire = {
enable = true;
};
xdg.portal = {
enable = true;
wlr = {
enable = true;
settings = {
screencast = {
max_fps = 15;
chooser_type = "dmenu";
chooser_cmd = "${pkgs.wofi}/bin/wofi --show dmenu";
};
};
};
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment