1 { config, lib, pkgs, ... }:
4 inherit (lib) mkEnableOption mkIf mkRenamedOptionModule teams;
9 maintainers = teams.gnome.members;
13 services.gnome.gnome-browser-connector.enable = mkEnableOption ''
14 native host connector for the GNOME Shell browser extension, a DBus service
15 allowing to install GNOME Shell extensions from a web browser
19 config = mkIf config.services.gnome.gnome-browser-connector.enable {
21 "chromium/native-messaging-hosts/org.gnome.browser_connector.json".source = "${pkgs.gnome-browser-connector}/etc/chromium/native-messaging-hosts/org.gnome.browser_connector.json";
22 "opt/chrome/native-messaging-hosts/org.gnome.browser_connector.json".source = "${pkgs.gnome-browser-connector}/etc/opt/chrome/native-messaging-hosts/org.gnome.browser_connector.json";
24 "chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.gnome-browser-connector}/etc/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json";
25 "opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.gnome-browser-connector}/etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json";
28 environment.systemPackages = [ pkgs.gnome-browser-connector ];
30 services.dbus.packages = [ pkgs.gnome-browser-connector ];
32 programs.firefox.nativeMessagingHosts.packages = [ pkgs.gnome-browser-connector ];