From 12b6675641432f1198a8ba09e0e2c63fb989d204 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 18 Sep 2024 08:22:44 -0400 Subject: [PATCH] firefox: add gnoe, browser connector --- homeManagerModules/apps/firefox/default.nix | 3 ++- homeManagerModules/options.nix | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/apps/firefox/default.nix b/homeManagerModules/apps/firefox/default.nix index d6c86882..8c041860 100644 --- a/homeManagerModules/apps/firefox/default.nix +++ b/homeManagerModules/apps/firefox/default.nix @@ -8,7 +8,8 @@ programs.firefox = { enable = true; nativeMessagingHosts = - lib.optional (config.ar.home.apps.keepassxc.enable) pkgs.keepassxc; + lib.optionals (config.ar.home.desktop.gnome.enable) [pkgs.gnome-browser-connector] + ++ lib.optional (config.ar.home.apps.keepassxc.enable) pkgs.keepassxc; }; }; } diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index f8eaf7de..ba1c021e 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -95,6 +95,12 @@ in { type = lib.types.bool; }; + gnome.enable = lib.mkOption { + description = "GNOME with sane defaults."; + default = osConfig.ar.desktop.gnome.enable; + type = lib.types.bool; + }; + hyprland = { enable = lib.mkOption { description = "Hyprland with full desktop session components.";