ark/users/modules/chromium/default.nix
2023-02-02 04:53:11 +03:00

36 lines
1.3 KiB
Nix

{config, ...}: {
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
".config/chromium"
".local/share/applications"
];
programs.chromium = {
enable = true;
commandLineArgs = [
"--ozone-platform-hint=auto"
"--enable-features=WaylandWindowDecorations"
"--enable-crashpad"
"--flag-switches-begin"
"--enable-gpu-rasterization"
"--enable-unsafe-webgpu"
"--enable-zero-copy"
"--ignore-gpu-blocklist"
"--disable-gpu-driver-bug-workarounds"
"--ozone-platform-hint=wayland"
"--enable-features=SystemNotifications,WaylandWindowDecorations,CanvasOopRasterization,EnableDrDc,RawDraw,WebRTCPipeWireCapturer"
"--disable-features=Vulkan"
"--flag-switches-end"
"--disk-cache-dir=\"$XDG_RUNTIME_DIR/chromium-cache\""
"--process-per-site"
];
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
"clngdbkpkpeebahjckkjfobafhncgmne" # stylus
"hlepfoohegkhhmjieoechaddaejaokhf" # refined github
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme
"nblkbiljcjfemkfjnhoobnojjgjdmknf" # pronoundb
];
};
}