From 57d52979da8ae3f8790084b2fef8a31263772cc5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 16 Apr 2023 06:12:00 +0100 Subject: [PATCH] Add args to make chromium use wayland native --- nixos/home-manager/packages/gui/browser-wayland.nix | 8 ++++++++ nixos/home-manager/packages/gui/browser.nix | 8 +++----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 nixos/home-manager/packages/gui/browser-wayland.nix diff --git a/nixos/home-manager/packages/gui/browser-wayland.nix b/nixos/home-manager/packages/gui/browser-wayland.nix new file mode 100644 index 00000000..7526ec69 --- /dev/null +++ b/nixos/home-manager/packages/gui/browser-wayland.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + imports = [ ./browser.nix ]; + programs.chromium.commandLineArgs = [ + "--enable-features=UseOzonePlatform" + "--ozone-platform=wayland" + ]; +} diff --git a/nixos/home-manager/packages/gui/browser.nix b/nixos/home-manager/packages/gui/browser.nix index 6d37e087..344ae67b 100644 --- a/nixos/home-manager/packages/gui/browser.nix +++ b/nixos/home-manager/packages/gui/browser.nix @@ -1,8 +1,6 @@ -{ pkgs, ... }: +{ ... }: { imports = [ ./common.nix ]; - home.packages = with pkgs; [ - firefox - chromium - ]; + programs.firefox.enable = true; + programs.chromium.enable = true; }