diff --git a/configs/home-manager/foo-dogsquared/default.nix b/configs/home-manager/foo-dogsquared/default.nix index 6a731eb8..b554d873 100644 --- a/configs/home-manager/foo-dogsquared/default.nix +++ b/configs/home-manager/foo-dogsquared/default.nix @@ -14,6 +14,7 @@ in programs = { dconf.enable = true; browsers.brave.enable = true; + browsers.google-chrome.enable = true; browsers.firefox.enable = true; browsers.misc.enable = true; doom-emacs.enable = true; diff --git a/configs/home-manager/foo-dogsquared/modules/programs/browsers.nix b/configs/home-manager/foo-dogsquared/modules/programs/browsers.nix index 55710f48..eb7eb4c1 100644 --- a/configs/home-manager/foo-dogsquared/modules/programs/browsers.nix +++ b/configs/home-manager/foo-dogsquared/modules/programs/browsers.nix @@ -4,11 +4,31 @@ let userCfg = config.users.foo-dogsquared; cfg = userCfg.programs.browsers; + + commonExtensions = [ + { id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # Vimium + { id = "ekhagklcjbdpajgpjgmbionohlpdbjgc"; } # Zotero connector + { id = "jfnifeihccihocjbfcfhicmmgpjicaec"; } # GSConnect + { id = "aapbdbdomjkkjkaonfhkkikfgjllcleb"; } # Google Translate + { id = "egpjdkipkomnmjhjmdamaniclmdlobbo"; } # Firenvim + { id = "gknkbkaapnhpmkcgkmdekdffgcddoiel"; } # Open Access Button + { id = "fpnmgdkabkmnadcjpehmlllkndpkmiak"; } # Wayback Machine + { id = "haebnnbpedcbhciplfhjjkbafijpncjl"; } # TinEye Reverse Image Search + { id = "dhdgffkkebhmkfjojejmpbldmpobfkfo"; } # Tampermonkey + { id = "kkmlkkjojmombglmlpbpapmhcaljjkde"; } # Zhongwen + { id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden + { id = "oldceeleldhonbafppcapldpdifcinji"; } # LanguageTool checker + { id = "nglaklhklhcoonedhgnpgddginnjdadi"; } # ActivityWatch Web Watcher + { id = "dgjhfomjieaadpoljlnidmbgkdffpack"; } # Sourcegraph + { id = "palihjnakafgffnompkdfgbgdbcagbko"; } # UpdateSWH + { id = "gphhapmejobijbbhgpjhcjognlahblep"; } # GNOME Shell integration + ]; in { options.users.foo-dogsquared.programs.browsers = { firefox.enable = lib.mkEnableOption "foo-dogsquared's Firefox setup"; brave.enable = lib.mkEnableOption "foo-dogsquared's Brave setup"; + google-chrome.enable = lib.mkEnableOption "foo-dogsquared's Google Chrome setup"; misc.enable = lib.mkEnableOption "foo-dogsquared's miscellaneous browsers setup"; plugins.firenvim.enable = lib.mkEnableOption "setting up Firenvim"; @@ -23,24 +43,7 @@ in "--no-default-browser-check" "--use-system-default-printer" ]; - extensions = [ - { id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # Vimium - { id = "ekhagklcjbdpajgpjgmbionohlpdbjgc"; } # Zotero connector - { id = "jfnifeihccihocjbfcfhicmmgpjicaec"; } # GSConnect - { id = "aapbdbdomjkkjkaonfhkkikfgjllcleb"; } # Google Translate - { id = "egpjdkipkomnmjhjmdamaniclmdlobbo"; } # Firenvim - { id = "gknkbkaapnhpmkcgkmdekdffgcddoiel"; } # Open Access Button - { id = "fpnmgdkabkmnadcjpehmlllkndpkmiak"; } # Wayback Machine - { id = "haebnnbpedcbhciplfhjjkbafijpncjl"; } # TinEye Reverse Image Search - { id = "dhdgffkkebhmkfjojejmpbldmpobfkfo"; } # Tampermonkey - { id = "kkmlkkjojmombglmlpbpapmhcaljjkde"; } # Zhongwen - { id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden - { id = "oldceeleldhonbafppcapldpdifcinji"; } # LanguageTool checker - { id = "nglaklhklhcoonedhgnpgddginnjdadi"; } # ActivityWatch Web Watcher - { id = "dgjhfomjieaadpoljlnidmbgkdffpack"; } # Sourcegraph - { id = "palihjnakafgffnompkdfgbgdbcagbko"; } # UpdateSWH - { id = "gphhapmejobijbbhgpjhcjognlahblep"; } # GNOME Shell integration - ]; + extensions = commonExtensions; }; services.bleachbit.cleaners = [ @@ -211,7 +214,7 @@ in (pkgs.writeTextFile { name = "tridactyl-nix-generated"; text = '' - set newtab file://${userCfg.programs.custom-homepage.finalPackage}/index.html + set newtab ${config.xdg.dataHome}/foodogsquared/homepage ''; }) ]; @@ -231,11 +234,15 @@ in ]; }) - # Goes with whatever you want to. - (lib.mkIf cfg.misc.enable { - home.packages = with pkgs; [ - google-chrome - #nyxt + (lib.mkIf cfg.google-chrome.enable { + programs.google-chrome.enable = true; + + # It's pretty much the same setup anyways. + programs.google-chrome.extensions = commonExtensions; + + programs.google-chrome.commandLineArgs = [ + "--no-default-browser-check" + "--use-system-default-printer" ]; services.bleachbit.cleaners = [ @@ -250,6 +257,13 @@ in ]; }) + # Goes with whatever you want to. + (lib.mkIf cfg.misc.enable { + home.packages = with pkgs; [ + nyxt + ]; + }) + (lib.mkIf cfg.plugins.firenvim.enable (let supportedBrowsers = [