blob: de61719576edee7aea9cc9062cb7979bf9993f8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{
config,
lib,
...
}: let
cfg = config.getchoo.programs.chromium;
inherit (lib) mkEnableOption mkIf;
in {
options.getchoo.programs.chromium.enable = mkEnableOption "chromium" // {default = config.getchoo.desktop.enable;};
config = mkIf cfg.enable {
programs.chromium = {
enable = true;
# hw accel support
commandLineArgs = [
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-gpu-compositing"
"--enable-native-gpu-memory-buffers"
"--enable-zero-copy"
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,RawDraw,WebRTCPipeWireCapturer,Vulkan,WaylandWindowDecorations,WebUIDarkMode"
"--force-dark-mode"
];
};
};
}
|