nixos/profiles/sway/screen-sharing.nix

34 lines
693 B
Nix
Raw Normal View History

2023-03-19 12:38:08 +01:00
{ config, lib, pkgs, ... }:
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 {
environment.systemPackages = with pkgs; [
remmina
];
services.pipewire.enable = true;
xdg.portal = {
enable = true;
2023-11-29 23:38:29 +01:00
wlr.enable = true;
2023-03-19 12:38:08 +01:00
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
};
# for firefox
environment.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
XDG_CURRENT_DESKTOP = "sway";
XDG_SESSION_TYPE = "wayland";
GTK_USE_PORTAL = "1";
};
};
}