dotfiles/home-manager/programs/chromium.nix

44 lines
1.4 KiB
Nix
Raw Normal View History

2023-11-14 02:40:28 +01:00
{ pkgs, ... }:
2023-11-13 18:46:14 +01:00
2023-11-13 18:42:38 +01:00
let
chromium_extension = [
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
"lhobafahddgcelffkeicbaginigeejlf" # Allow Cors
"dnhpnfgdlenaccegplpojghhmaamnnfp" # Augmented Steam
"mdjildafknihdffpkfmmpnpoiajfjnjd" # Consent-O-Matic
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # Dark Reader
2023-11-14 02:40:28 +01:00
"mnjggcdmjocbbbhaepdhchncahnbgone" # Sponsor Block
2023-11-13 18:42:38 +01:00
"epocinhmkcnjfjobnglchpbncndobblj" # Mastodon Gaze
"blipmdconlkpinefehnmjammfjpmpbjk" # Lighthouse
"ggijpepdpiehgbiknmfpfbhcalffjlbj" # Open in mpv
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock Origin
2023-11-14 02:40:28 +01:00
"gbmdgpbipfallnflgajpaliibnhdgobh" # JSON Viewer
"nhdogjmejiglipccpnnnanhbledajbpd" # Vue Devtools
"blipmdconlkpinefehnmjammfjpmpbjk" # Lighthouse
"fmkadmapgofadopljbjfkapdkoienihi" # React Devtools
"bmnlcjabgnpnenekpadlanbbkooimhnj" # Honey
"kbfnbcaeplbcioakkpcpgfkobkghlhen" # Grammarly
2023-11-13 18:42:38 +01:00
];
in
{
programs.chromium = {
enable = true;
dictionaries = with pkgs.hunspellDictsChromium; [ en_US de_DE ];
2023-11-14 02:40:28 +01:00
commandLineArgs = [
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,WebRTCPipeWireCapturer"
"--disable-features=UseChromeOSDirectVideoDecoder"
"--use-vulkan"
"--ozone-platform-hint=auto"
"--enable-hardware-overlays"
];
2023-11-13 18:42:38 +01:00
extensions = map
(eid: {
id = eid;
})
chromium_extension;
};
}