home-manager: Add chromium config

Fixes issues encountered with xwayland + ironbar and fcitx5 not
working with the wayland version.

See: https://wiki.archlinux.org/title/Chromium#Native_Wayland_support
This commit is contained in:
Donovan Glover 2024-07-15 13:58:31 -04:00
parent 7a95a8c4fd
commit 61b5a5dd31
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

17
home/chromium.nix Normal file
View File

@ -0,0 +1,17 @@
{ pkgs, ... }:
let
inherit (pkgs) ungoogled-chromium;
in
{
programs.chromium = {
enable = true;
package = ungoogled-chromium;
commandLineArgs = [
"--ozone-platform=wayland"
"--enable-wayland-ime"
"--extension-mime-request-handling=always-prompt-for-install"
];
};
}