Skip to content

Commit

Permalink
Add zoom app in comms-vm
Browse files Browse the repository at this point in the history
zoom-us application is added into comms-vm with icon
A launch script is created to add environment to waypipe

Signed-off-by: Berk Arslan <[email protected]>
  • Loading branch information
Nerox9 committed Oct 3, 2024
1 parent 34ade48 commit 5e9ebc9
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 2 deletions.
8 changes: 8 additions & 0 deletions modules/common/services/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ in
icon = "${pkgs.icon-pack}/slack.svg";
}

{
name = "Zoom";
description = "Zoom Videoconferencing Application";
vm = "Comms";
path = "${pkgs.givc-cli}/bin/givc-cli ${cliArgs} start --vm comms-vm zoom";
icon = "${pkgs.icon-pack}/Zoom.svg";
}

{
name = "AppFlowy";
description = "Productivity & Note-Taking Application";
Expand Down
2 changes: 1 addition & 1 deletion modules/microvm/virtualization/microvm/appvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let
waypipeBorder = if vm.borderColor != null then "--border \"${vm.borderColor}\"" else "";
runWaypipe = pkgs.writeScriptBin "run-waypipe" ''
#!${pkgs.runtimeShell} -e
${pkgs.waypipe}/bin/waypipe --vsock -s ${toString configHost.ghaf.virtualization.microvm.guivm.waypipePort} ${waypipeBorder} server "$@"
${pkgs.waypipe}/bin/waypipe --vsock -s ${toString configHost.ghaf.virtualization.microvm.guivm.waypipePort} ${waypipeBorder} server ${config.ghaf.givc.appPrefix}/env XDG_CURRENT_DESKTOP=wlroots XDG_SESSION_TYPE=wayland "$@"
'';
in
{
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/guivm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ let
pkgs.nm-launcher
pkgs.bt-launcher
pkgs.pamixer
pkgs.zoom-us
]
++ (lib.optional (
config.ghaf.profiles.debug.enable && config.ghaf.virtualization.microvm.idsvm.mitmproxy.enable
Expand Down
6 changes: 5 additions & 1 deletion modules/reference/appvms/comms.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ in
pkgs.element-gps
pkgs.gpsd
pkgs.tcpdump
pkgs.xdg-utils
pkgs.zoom-us
] ++ pkgs.lib.optionals isDendritePineconeEnabled [ dendrite-pinecone ];
macAddress = "02:00:00:03:09:01";
ramMb = 4096;
Expand Down Expand Up @@ -87,9 +89,11 @@ in
applications = lib.mkForce ''
{
"element": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland",
"slack": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://app.slack.com/client ${config.ghaf.givc.idsExtraArgs}"
"slack": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://app.slack.com/client ${config.ghaf.givc.idsExtraArgs}",
"zoom": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/zoom"
}'';
};
config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
}
];
borderColor = "#337aff";
Expand Down
1 change: 1 addition & 0 deletions overlays/custom-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
gtklock = import ./gtklock { inherit prev; };
hardware-scan = final.callPackage ../../packages/hardware-scan { };
pulseaudio-ghaf = import ./pulseaudio { inherit prev; };
zoom-us = import ./zoom-us { inherit prev; };
})
12 changes: 12 additions & 0 deletions overlays/custom-packages/zoom-us/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
{ prev, ... }:
# Disable zoom launcher
prev.zoom-us.overrideAttrs (_prevAttrs: {

postFixup = _prevAttrs.postFixup + ''
substituteInPlace $out/bin/zoom \
--prefix LD_LIBRARY_PATH ":" "$out/opt/zoom/Qt/lib/"
--replace opt/zoom/ZoomLauncher opt/zoom/zoom
'';
})
1 change: 1 addition & 0 deletions packages/icon-pack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ let
"utilities-terminal.svg"
"yast-vpn.svg"
"system-file-manager.svg"
"Zoom.svg"
];
in
runCommand "icon-pack"
Expand Down

0 comments on commit 5e9ebc9

Please sign in to comment.