From 8d474f57cab2a2c2187a925a9b7b8e67493ee0fe Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 8 Apr 2024 11:43:48 -0400 Subject: [PATCH] home: add google chrome and disable chromium by default --- homeManagerModules/guiApps/default.nix | 4 +++- homeManagerModules/guiApps/google-chrome/default.nix | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 homeManagerModules/guiApps/google-chrome/default.nix diff --git a/homeManagerModules/guiApps/default.nix b/homeManagerModules/guiApps/default.nix index ebc6b7b5..571e7516 100644 --- a/homeManagerModules/guiApps/default.nix +++ b/homeManagerModules/guiApps/default.nix @@ -10,6 +10,7 @@ ./firefox ./fractal ./fuzzel + ./google-chrome ./librewolf ./mako ./obsidian @@ -23,9 +24,10 @@ ]; guiApps.alacritty.enable = lib.mkDefault true; - guiApps.chromium.enable = lib.mkDefault true; + guiApps.chromium.enable = lib.mkDefault false; guiApps.firefox.enable = lib.mkDefault true; guiApps.fractal.enable = lib.mkDefault true; + guiApps.google-chrome.enable = lib.mkDefault true; guiApps.obsidian.enable = lib.mkDefault true; guiApps.tauon.enable = lib.mkDefault true; guiApps.thunderbird.enable = lib.mkDefault true; diff --git a/homeManagerModules/guiApps/google-chrome/default.nix b/homeManagerModules/guiApps/google-chrome/default.nix new file mode 100644 index 00000000..95cc51e0 --- /dev/null +++ b/homeManagerModules/guiApps/google-chrome/default.nix @@ -0,0 +1,9 @@ +{ pkgs, lib, config, ... }: { + options = { + guiApps.google-chrome.enable = lib.mkEnableOption "Enable Google Chrome."; + }; + + config = lib.mkIf config.guiApps.google-chrome.enable { + home.packages = with pkgs; [ google-chrome ]; + }; +}