nix-configs

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

chromium.nix (920B)


      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       "--homepage=https://breadcat.github.io/startpage/"
     18       "--force-dark-mode"
     19       "--no-default-browser-check"
     20       "--enable-feature=WebUIDarkMode"
     21       "--disable-features=Translate"
     22     ];
     23   };
     24 
     25   home.sessionVariables = {
     26     BROWSER = "chromium";
     27   };
     28 
     29   xdg.mimeApps.defaultApplications = {
     30     "text/html" = ["chromium.desktop"];
     31     "text/xml" = ["chromium.desktop"];
     32     "x-scheme-handler/http" = ["chromium.desktop"];
     33     "x-scheme-handler/https" = ["chromium.desktop"];
     34   };
     35 }