mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
33 lines
699 B
Nix
33 lines
699 B
Nix
{ 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;
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-gtk
|
|
xdg-desktop-portal-wlr
|
|
];
|
|
};
|
|
|
|
# for firefox
|
|
environment.sessionVariables = {
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
XDG_CURRENT_DESKTOP = "sway";
|
|
XDG_SESSION_TYPE = "wayland";
|
|
GTK_USE_PORTAL = "1";
|
|
};
|
|
};
|
|
}
|