2025-02-01 18:18:53 +08:00
|
|
|
{ lib, config, ... }:
|
|
|
|
|
let
|
|
|
|
|
cfg = config.youthlic.programs.chromium;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
options = {
|
|
|
|
|
youthlic.programs.chromium = {
|
|
|
|
|
enable = lib.mkEnableOption "chromium";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
programs.chromium = {
|
|
|
|
|
enable = true;
|
|
|
|
|
commandLineArgs = [
|
2025-02-06 12:34:26 +08:00
|
|
|
"--ozone-platform-hint=wayland"
|
|
|
|
|
"--process-per-site"
|
|
|
|
|
"--enable-wayland-ime"
|
|
|
|
|
"--wayland-text-input-version=3"
|
2025-02-01 18:18:53 +08:00
|
|
|
"--enable-features=UseOzonePlatform"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|