feat: add OBS for screen sharing tests in local + fix screen sharing

This commit is contained in:
Xavier Morel
2025-10-21 11:32:50 +02:00
parent d60a6515b3
commit 7f91ae6c81
2 changed files with 9 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
{ {
inputs, inputs,
modulesPath, modulesPath,
pkgs,
... ...
}: }:
{ {
@@ -39,7 +40,10 @@
initrd.kernelModules = [ "amdgpu" ]; initrd.kernelModules = [ "amdgpu" ];
plymouth.enable = true; plymouth.enable = true;
}; };
programs.obs-studio = {
enable = true;
plugins = [ pkgs.obs-studio-plugins.wlrobs ];
};
hardware = { hardware = {
sane.enable = true; sane.enable = true;
}; };

View File

@@ -35,6 +35,9 @@ in
"mako &" "mako &"
"nm-applet --indicator &" "nm-applet --indicator &"
"$idlehandler" "$idlehandler"
"dbus-update-activation-environment --systemd --all" # WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
]; ];
# decorations.conf # decorations.conf
@@ -65,7 +68,7 @@ in
"XCURSOR_SIZE,24" "XCURSOR_SIZE,24"
"QT_CURSOR_SIZE,24" "QT_CURSOR_SIZE,24"
"XDG_CURRENT_DESKTOP, Hyprland" "XDG_CURRENT_DESKTOP, Hyprland"
"XDG_SESSION_TYPE, Hyprland" "XDG_SESSION_TYPE, wayland" # Hyprland?
"XDG_SESSION_DESKTOP, Hyprland" "XDG_SESSION_DESKTOP, Hyprland"
"GDK_BACKEND, wayland, x11" "GDK_BACKEND, wayland, x11"
"CLUTTER_BACKEND, wayland" "CLUTTER_BACKEND, wayland"