Enable dark mode, wayland & screensharing in chrome default flags
diff --git a/src/apps/personal/sway.nix b/src/apps/personal/sway.nix
index a6ceea5..bcc0486 100644
--- a/src/apps/personal/sway.nix
+++ b/src/apps/personal/sway.nix
@@ -129,6 +129,7 @@
};
startup = [
{ command = "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"; }
+ { command = "pkill swaync; ${pkgs-unstable.swaynotificationcenter}/bin/swaync"; always = true; }
];
terminal = "kitty";
up = "k";
@@ -144,7 +145,6 @@
'';
extraSessionCommands = ''
- ${pkgs-unstable.swaynotificationcenter}/bin/swaync
export SDL_VIDEODRIVER=wayland
# needs qt5.qtwayland in systemPackages
export QT_QPA_PLATFORM=wayland
diff --git a/src/system.nix b/src/system.nix
index 8f2ede5..d7ec85a 100644
--- a/src/system.nix
+++ b/src/system.nix
@@ -282,6 +282,8 @@
# import /scripts/jetbrains.rider.nix
# ];
+ nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WebUIDarkMode --force-dark-mode --enable-features=WebRTCPipeWireCapturer --enable-gpu";
+
services.mongodb = {
package = pkgs.mongodb-4_2;
enable = true;