dotfiles/home-manager/programs/chromium.nix

47 lines
1.6 KiB
Nix
Raw Normal View History

{ pkgs, config, ... }:
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
];
isEnabled = if (config.machine.isGraphical && !config.machine.isGeneric) then true else false;
2024-05-28 14:38:22 +02:00
dictionaries = with pkgs.hunspellDictsChromium; [
en_US
de_DE
];
2024-02-18 23:04:50 +01:00
commandLineArgs = [
2024-04-05 02:07:37 +02:00
"--enable-wayland-ime"
2024-02-27 02:54:02 +01:00
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--disable-features=UseChromeOSDirectVideoDecoder"
2024-04-05 02:07:37 +02:00
"--enable-features=WaylandWindowDecorations,VaapiVideoDecoder,VaapiVideoEncoder,VaapiVideoDecodeLinuxGL,WebRTCPipeWireCapturer"
2024-02-18 23:04:50 +01:00
];
2024-02-27 02:54:02 +01:00
extensions = map (eid: { id = eid; }) chromium_extension;
2024-05-28 14:38:22 +02:00
in
{
2024-02-24 18:56:34 +01:00
programs.chromium = {
2024-02-27 02:54:02 +01:00
inherit dictionaries commandLineArgs extensions;
2024-02-18 23:04:50 +01:00
enable = isEnabled;
};
programs.google-chrome = {
2024-02-27 02:54:02 +01:00
inherit commandLineArgs;
2024-02-18 23:04:50 +01:00
enable = isEnabled;
2023-11-13 18:42:38 +01:00
};
}