From e065bca40dc1404f4dbc1fea7130497d99bf7818 Mon Sep 17 00:00:00 2001 From: Sense T Date: Thu, 29 Jun 2023 17:17:58 +0800 Subject: [PATCH] electron settings --- home/user/home.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/home/user/home.nix b/home/user/home.nix index 9b7261f..5d3ca78 100644 --- a/home/user/home.nix +++ b/home/user/home.nix @@ -62,6 +62,18 @@ [Context] filesystems=/run/current-system/sw/share/X11/fonts:ro;/nix/store:ro;~/.icons; ''; + + # Electron global settings + ".config/electron-flags.conf".text = '' + --enable-features=WaylandWindowDecorations + --ozone-platform-hint=auto + --enable-webrtc-pipewire-capturer + ''; + + ".config/electron13-flags.conf".text = '' + --enable-features=UseOzonePlatform + --ozone-platform=wayland + ''; }; }; } \ No newline at end of file