mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 18:52:43 +00:00
feat(zoom-us): managed by nixpak
This commit is contained in:
parent
163fb43412
commit
0e8eae72d1
9 changed files with 150 additions and 32 deletions
|
|
@ -18,6 +18,7 @@ in {
|
||||||
nixpaks = {
|
nixpaks = {
|
||||||
qq = callNixPak ./qq.nix;
|
qq = callNixPak ./qq.nix;
|
||||||
termius = callNixPak ./termius.nix;
|
termius = callNixPak ./termius.nix;
|
||||||
|
zoom-us = callNixPak ./zoom-us.nix;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ in {
|
||||||
bubblewrap = {
|
bubblewrap = {
|
||||||
network = lib.mkDefault true;
|
network = lib.mkDefault true;
|
||||||
sockets = {
|
sockets = {
|
||||||
# do not force wayland
|
wayland = true;
|
||||||
pulse = true;
|
pulse = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,20 +42,22 @@
|
||||||
|
|
||||||
bubblewrap = {
|
bubblewrap = {
|
||||||
bind.rw = [
|
bind.rw = [
|
||||||
sloth.xdgDocumentsDir
|
[
|
||||||
sloth.xdgDownloadDir
|
(sloth.concat' sloth.homeDir "/.sandbox/downloads")
|
||||||
sloth.xdgMusicDir
|
sloth.xdgDownloadDir
|
||||||
sloth.xdgVideosDir
|
]
|
||||||
sloth.xdgPicturesDir
|
[
|
||||||
|
(sloth.concat' sloth.homeDir "/.sandbox/exchange")
|
||||||
|
(sloth.concat' sloth.homeDir "/Shared")
|
||||||
|
]
|
||||||
];
|
];
|
||||||
bind.ro = [
|
bind.ro = [
|
||||||
"${pkgs.libx11}/lib"
|
"${pkgs.libx11}/lib"
|
||||||
"${pkgs.libxcb}/lib"
|
"${pkgs.libxcb}/lib"
|
||||||
"${pkgs.krb5.lib}/lib"
|
"${pkgs.krb5.lib}/lib"
|
||||||
"${pkgs.stdenv.cc.cc.lib}/lib"
|
"${pkgs.stdenv.cc.cc.lib}/lib"
|
||||||
# "${pkgs.fcitx5-gtk}/lib"
|
(sloth.concat'
|
||||||
# "${pkgs.kdePackages.fcitx5-qt}/lib"
|
sloth.xdgPicturesDir "/Screenshots")
|
||||||
# (sloth.envOr "XAUTHORITY" (sloth.concat' sloth.runtimeDir "/.Xauthority"))
|
|
||||||
];
|
];
|
||||||
sockets = {
|
sockets = {
|
||||||
x11 = false;
|
x11 = false;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
paths = with pkgs; [
|
paths = with pkgs; [
|
||||||
termius
|
termius
|
||||||
libglvnd
|
libglvnd
|
||||||
mesa.drivers
|
mesa
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -32,15 +32,19 @@
|
||||||
|
|
||||||
bubblewrap = {
|
bubblewrap = {
|
||||||
bind.rw = [
|
bind.rw = [
|
||||||
sloth.xdgDocumentsDir
|
[
|
||||||
sloth.xdgDownloadDir
|
(sloth.concat' sloth.homeDir "/.sandbox/downloads")
|
||||||
sloth.xdgMusicDir
|
sloth.xdgDownloadDir
|
||||||
sloth.xdgVideosDir
|
]
|
||||||
sloth.xdgPicturesDir
|
[
|
||||||
|
(sloth.concat' sloth.homeDir "/.sandbox/exchange")
|
||||||
|
(sloth.concat' sloth.homeDir "/Shared")
|
||||||
|
]
|
||||||
|
(sloth.concat' sloth.homeDir "/Public")
|
||||||
];
|
];
|
||||||
bind.ro = [
|
bind.ro = [
|
||||||
"${pkgs.libglvnd}/lib"
|
"${pkgs.libglvnd}/lib"
|
||||||
"${pkgs.mesa.drivers}/lib"
|
"${pkgs.mesa}/lib"
|
||||||
"${pkgs.stdenv.cc.cc.lib}/lib"
|
"${pkgs.stdenv.cc.cc.lib}/lib"
|
||||||
"/etc/passwd"
|
"/etc/passwd"
|
||||||
"/etc/group"
|
"/etc/group"
|
||||||
|
|
@ -52,8 +56,8 @@
|
||||||
pipewire = true;
|
pipewire = true;
|
||||||
};
|
};
|
||||||
env = {
|
env = {
|
||||||
LD_LIBRARY_PATH = "${pkgs.libglvnd}/lib:${pkgs.mesa.drivers}/lib:${pkgs.stdenv.cc.cc.lib}/lib";
|
LD_LIBRARY_PATH = "${pkgs.libglvnd}/lib:${pkgs.mesa}/lib:${pkgs.stdenv.cc.cc.lib}/lib";
|
||||||
LIBGL_DRIVERS_PATH = "${pkgs.mesa.drivers}/lib/dri";
|
LIBGL_DRIVERS_PATH = "${pkgs.mesa}/lib/dri";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
93
nixcfgs/hardening/nixpaks/zoom-us.nix
Normal file
93
nixcfgs/hardening/nixpaks/zoom-us.nix
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
# FIXME: Cursor & CEF not working.
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
mkNixPak,
|
||||||
|
buildEnv,
|
||||||
|
makeDesktopItem,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
appId = "us.zoom.Zoom";
|
||||||
|
|
||||||
|
wrapped = mkNixPak {
|
||||||
|
config = {sloth, ...}: {
|
||||||
|
app = {
|
||||||
|
package = buildEnv {
|
||||||
|
name = "nixpak-zoom";
|
||||||
|
paths = with pkgs; [
|
||||||
|
zoom-us
|
||||||
|
];
|
||||||
|
};
|
||||||
|
binPath = "bin/zoom";
|
||||||
|
};
|
||||||
|
flatpak.appId = appId;
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./modules/gui-base.nix
|
||||||
|
./modules/network.nix
|
||||||
|
./modules/common.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
bubblewrap = {
|
||||||
|
bind.rw = [
|
||||||
|
[
|
||||||
|
(sloth.concat' sloth.homeDir "/.sandbox/downloads")
|
||||||
|
sloth.xdgDownloadDir
|
||||||
|
]
|
||||||
|
[
|
||||||
|
(sloth.concat' sloth.homeDir "/.sandbox/exchange")
|
||||||
|
(sloth.concat' sloth.homeDir "/Shared")
|
||||||
|
]
|
||||||
|
(sloth.concat' sloth.homeDir "/Public")
|
||||||
|
];
|
||||||
|
bind.ro = [
|
||||||
|
];
|
||||||
|
sockets = {
|
||||||
|
x11 = false;
|
||||||
|
wayland = true;
|
||||||
|
pipewire = true;
|
||||||
|
};
|
||||||
|
env = {
|
||||||
|
# LD_LIBRARY_PATH =
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exePath = lib.getExe wrapped.config.script;
|
||||||
|
in
|
||||||
|
buildEnv {
|
||||||
|
inherit (wrapped.config.script) name meta passthru;
|
||||||
|
paths = [
|
||||||
|
wrapped.config.script
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = appId;
|
||||||
|
desktopName = "Zoom Workplace";
|
||||||
|
genericName = "Zoom Video Conference";
|
||||||
|
comment = "Zoom Video Conference";
|
||||||
|
exec = "${exePath} %U";
|
||||||
|
terminal = false;
|
||||||
|
icon = "${pkgs.zoom-us}/share/pixmaps/Zoom.png";
|
||||||
|
startupNotify = true;
|
||||||
|
startupWMClass = "zoom";
|
||||||
|
type = "Application";
|
||||||
|
categories = [
|
||||||
|
"Network"
|
||||||
|
"Application"
|
||||||
|
];
|
||||||
|
mimeTypes = [
|
||||||
|
"x-scheme-handler/zoommtg"
|
||||||
|
"x-scheme-handler/zoomus"
|
||||||
|
"x-scheme-handler/tel"
|
||||||
|
"x-scheme-handler/callto"
|
||||||
|
"x-scheme-handler/zoomphonecall"
|
||||||
|
"x-scheme-handler/zoomphonesms"
|
||||||
|
"x-scheme-handler/zoomcontactcentercall"
|
||||||
|
"application/x-zoom"
|
||||||
|
];
|
||||||
|
extraConfig = {
|
||||||
|
X-Flatpak = appId;
|
||||||
|
X-KDE-Protocols = "zoommtg;zoomus;tel;callto;zoomphonecall;zoomphonesms;zoomcontactcentercall;";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -93,5 +93,6 @@
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store";
|
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store";
|
||||||
|
CODEX_HOME = "${config.xdg.configHome}/codex";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,22 +33,8 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
services.flatpak.packages = [
|
services.flatpak.packages = [
|
||||||
# { appId = "com.google.Chrome"; origin = "flathub" }
|
|
||||||
# "com.google.Chrome"
|
|
||||||
# "com.valvesoftware.Steam"
|
|
||||||
# "com.qq.QQ"
|
|
||||||
"com.tencent.WeChat"
|
|
||||||
# "eu.betterbird.Betterbird"
|
|
||||||
"com.baidu.NetDisk"
|
"com.baidu.NetDisk"
|
||||||
# "com.discordapp.Discord"
|
|
||||||
"com.google.EarthPro"
|
|
||||||
"com.wps.Office"
|
"com.wps.Office"
|
||||||
# "md.obsidian.Obsidian"
|
|
||||||
# "app.zen_browser.zen"
|
|
||||||
# "com.vivaldi.Vivaldi"
|
|
||||||
# "com.getpostman.Postman"
|
|
||||||
"us.zoom.Zoom"
|
|
||||||
# "com.ticktick.TickTick" # cannot run on wayland under flatpak
|
|
||||||
];
|
];
|
||||||
services.flatpak.overrides = {
|
services.flatpak.overrides = {
|
||||||
global = {
|
global = {
|
||||||
|
|
|
||||||
30
nixcfgs/users/js0ny/programs/productivity/zoom-us.nix
Normal file
30
nixcfgs/users/js0ny/programs/productivity/zoom-us.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
mergetools =
|
||||||
|
import ../../../../modules/lib/mergetools.nix
|
||||||
|
{inherit pkgs lib config;};
|
||||||
|
mkMergedIni = mergetools.mkMergedIni;
|
||||||
|
# https://wiki.archlinux.org/title/Zoom_Meetings#Running_on_Wayland_without_Xwayland
|
||||||
|
zoomUsConfig = mkMergedIni {
|
||||||
|
name = "zoomusConfig";
|
||||||
|
target = "${config.home.homeDirectory}/.var/app/us.zoom.Zoom/config/zoomus.conf";
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
xwayland = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
zoomUsConfig
|
||||||
|
../../../../hardening/nixpaks
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nixpaks.zoom-us
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -68,6 +68,7 @@ in {
|
||||||
./programs/productivity/sdcv.nix
|
./programs/productivity/sdcv.nix
|
||||||
./programs/productivity/sioyek
|
./programs/productivity/sioyek
|
||||||
./programs/productivity/thunderbird.nix
|
./programs/productivity/thunderbird.nix
|
||||||
|
./programs/productivity/zoom-us.nix
|
||||||
|
|
||||||
# Social
|
# Social
|
||||||
./programs/social/discord.nix
|
./programs/social/discord.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue