nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

chromium.nix (1199B)


      1 { config, pkgs, ... }:
      2 
      3 {
      4   programs.chromium = {
      5     enable = true;
      6     # package = pkgs.ungoogled-chromium;
      7 
      8     dictionaries = [ pkgs.hunspellDictsChromium.en_GB ];
      9 
     10     extensions = [
     11       { id = "nngceckbapebfimnlniiiahkandclblb"; } # bitwarden
     12       { id = "lfjnnkckddkopjfgmbcpdiolnmfobflj"; } # custom new tab
     13       { id = "ddkjiahejlhfcafbddmgiahcphecmpfh"; } # ublock origin lite
     14     ];
     15 
     16     commandLineArgs = [
     17       # sort:start
     18       "--disable-features=AiModeOmniboxEntryPoint"
     19       "--disable-features=HideAimEntrypointOnUserInput"
     20       "--disable-features=Translate"
     21       "--enable-feature=WebUIDarkMode"
     22       "--force-dark-mode"
     23       "--homepage=https://breadcat.github.io/startpage/"
     24       "--no-default-browser-check"
     25       # sort:end
     26     ];
     27   };
     28 
     29 
     30 #      hl.bind("SUPER + W", hl.dsp.exec_cmd("chromium"))
     31 #      hl.bind("SUPER + SHIFT + W", hl.dsp.exec_cmd("chromium --incognito"))
     32 
     33   home.sessionVariables = {
     34     BROWSER = "chromium";
     35   };
     36 
     37   xdg.mimeApps.defaultApplications = {
     38     "text/html" = ["chromium.desktop"];
     39     "text/xml" = ["chromium.desktop"];
     40     "x-scheme-handler/http" = ["chromium.desktop"];
     41     "x-scheme-handler/https" = ["chromium.desktop"];
     42   };
     43 }