2024-07-28 21:08:02 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-03-19 12:38:08 +01:00
|
|
|
let
|
|
|
|
cfg = config.my.profiles.sway-screen-sharing;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.profiles.sway-screen-sharing = with lib; {
|
|
|
|
enable = mkEnableOption "sway-screen-sharing profile";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-07-28 21:08:02 +02:00
|
|
|
environment.systemPackages = with pkgs; [ remmina ];
|
2023-03-19 12:38:08 +01:00
|
|
|
|
|
|
|
services.pipewire.enable = true;
|
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2023-11-29 23:38:29 +01:00
|
|
|
wlr.enable = true;
|
2024-07-28 21:08:02 +02:00
|
|
|
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
2023-03-19 12:38:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# for firefox
|
|
|
|
environment.sessionVariables = {
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
XDG_CURRENT_DESKTOP = "sway";
|
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
GTK_USE_PORTAL = "1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|