System/applications/communications.nix

72 lines
2.3 KiB
Nix
Raw Normal View History

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
2022-05-11 11:34:31 -04:00
# Zoom (for work, sadly)
unstable.zoom-us
2022-05-19 12:48:07 -04:00
# Teams (also for work)
unstable.teams
2021-12-20 13:37:26 -05:00
# chromium
chromium
# Wayland workaround packages
fbChromeDesktopItem
teamsItem
];
2022-04-19 18:27:36 -04:00
# Override for waylandified discord, really jank, but its still newer than the bundled electron
nixpkgs.config.permittedInsecurePackages = [
"electron-13.6.9"
];
2021-12-20 13:37:26 -05:00
}