2021-12-20 13:37:26 -05:00
|
|
|
# Communications software
|
|
|
|
{ config, pkgs, unstable, ... }:
|
|
|
|
{
|
|
|
|
# Pull in personal overlay
|
|
|
|
# nixpkgs.overlays = [ (import ../../overlays/personal/overlay.nix) ];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs;
|
|
|
|
let
|
|
|
|
## Wayland workaround chromium desktop items
|
|
|
|
# Facebook messenger
|
|
|
|
fbChromeDesktopItem = pkgs.makeDesktopItem {
|
|
|
|
name = "messenger-chrome";
|
|
|
|
desktopName = "Messenger (chrome)";
|
|
|
|
exec = "${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland --app=\"https://messenger.com\"";
|
|
|
|
terminal = false;
|
|
|
|
};
|
|
|
|
# Teams
|
|
|
|
teamsItem = pkgs.makeDesktopItem {
|
|
|
|
name = "teams-wayland";
|
|
|
|
desktopName = "Teams (Wayland)";
|
|
|
|
exec = "${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland --app=\"https://teams.microsoft.com\"";
|
|
|
|
terminal = false;
|
|
|
|
};
|
|
|
|
## Pass wayland options to existing applications
|
|
|
|
signalWaylandItem = pkgs.makeDesktopItem {
|
|
|
|
name = "signal-desktop-wayland";
|
|
|
|
desktopName = "Signal (Wayland)";
|
2022-02-22 04:22:24 -05:00
|
|
|
exec = "${unstable.signal-desktop}/bin/signal-desktop --enable-features=UseOzonePlatform -ozone-platform=wayland";
|
2021-12-20 13:37:26 -05:00
|
|
|
terminal = false;
|
|
|
|
icon = "signal-desktop";
|
|
|
|
type = "Application";
|
|
|
|
};
|
|
|
|
zulipWayland = pkgs.makeDesktopItem {
|
|
|
|
name = "zulip-wayland";
|
|
|
|
desktopName = "Zulip (Wayland)";
|
|
|
|
exec = "${unstable.zulip}/bin/zulip --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
|
|
|
terminal = false;
|
|
|
|
icon = "zulip";
|
|
|
|
type = "Application";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
[
|
|
|
|
# Discord
|
2022-02-22 04:22:24 -05:00
|
|
|
unstable.discord
|
2021-12-20 13:37:26 -05:00
|
|
|
unstable.betterdiscordctl
|
|
|
|
# Use unstable element for latest features
|
2022-02-14 11:32:32 -05:00
|
|
|
element-desktop-wayland
|
2021-12-20 13:37:26 -05:00
|
|
|
# Desktop signal client
|
2022-02-22 04:22:24 -05:00
|
|
|
unstable.signal-desktop
|
2021-12-20 13:37:26 -05:00
|
|
|
signalWaylandItem
|
|
|
|
# Desktop telegram client
|
|
|
|
tdesktop
|
|
|
|
# zulip
|
|
|
|
unstable.zulip
|
|
|
|
zulipWayland
|
|
|
|
# chromium
|
|
|
|
chromium
|
|
|
|
# Wayland workaround packages
|
|
|
|
fbChromeDesktopItem
|
|
|
|
teamsItem
|
|
|
|
];
|
|
|
|
}
|