54 lines
1.7 KiB
Nix
54 lines
1.7 KiB
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
bravePolicies = {
|
|
# Disable built-in autofill/password prompts in favor of Bitwarden
|
|
PasswordManagerEnabled = false;
|
|
AutofillCreditCardEnabled = false;
|
|
AutofillAddressEnabled = false;
|
|
|
|
# Dark Mode enforcement
|
|
BrowserColorScheme = 2; # 1 = Light, 2 = Dark
|
|
ForceDarkModeEnabled = true;
|
|
|
|
# Default Search Engine -> Brave Search
|
|
DefaultSearchProviderEnabled = true;
|
|
DefaultSearchProviderName = "Brave";
|
|
DefaultSearchProviderSearchURL = "https://search.brave.com/search?q={searchTerms}";
|
|
DefaultSearchProviderSuggestURL = "https://search.brave.com/api/suggest?q={searchTerms}";
|
|
|
|
# Font Settings
|
|
DefaultFontSize = 16;
|
|
DefaultFixedFontSize = 14;
|
|
FontFamilyMap = {
|
|
standard = "Inter";
|
|
sansserif = "Inter";
|
|
fixed = "JetBrainsMono Nerd Font";
|
|
serif = "DejaVu Serif";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
programs.chromium = {
|
|
enable = true;
|
|
package = pkgs.brave;
|
|
|
|
commandLineArgs = [
|
|
"--enable-features=UseOzonePlatform"
|
|
"--ozone-platform=wayland"
|
|
"--enable-wayland-ime"
|
|
"--ignore-gpu-blocklist"
|
|
"--enable-gpu-rasterization"
|
|
"--enable-zero-copy"
|
|
];
|
|
|
|
extensions = [
|
|
{ id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden
|
|
{ id = "hfjbmagddngcpeloejdejnfgbamkjaeg"; } # Vimium C
|
|
];
|
|
};
|
|
xdg.configFile."brave/policies/managed/policies.json".text = builtins.toJSON bravePolicies;
|
|
xdg.configFile."BraveSoftware/Brave-Browser/policies/managed/policies.json".text = builtins.toJSON bravePolicies;
|
|
xdg.configFile."chromium/policies/managed/policies.json".text = builtins.toJSON bravePolicies;
|
|
}
|