@@ -0,0 +1,27 @@
1+# Chrome GNOME Shell native host connector.
2+{ config, lib, pkgs, ... }:
3+
4+with lib;
5+
6+{
7+ ###### interface
8+ options = {
9+ services.gnome3.chrome-gnome-shell.enable = mkEnableOption ''
10+ Chrome GNOME Shell native host connector, a DBus service
11+ allowing to install GNOME Shell extensions from a web browser.
12+ '';
13+ };
14+
15+
16+ ###### implementation
17+ config = mkIf config.services.gnome3.chrome-gnome-shell.enable {
18+ environment.etc = {
19+ "chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.chrome-gnome-shell}/etc/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json";
20+ "opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.chrome-gnome-shell}/etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json";
21+ };
22+
23+ environment.systemPackages = [ pkgs.chrome-gnome-shell ];
24+
25+ services.dbus.packages = [ pkgs.chrome-gnome-shell ];
26+ };
27+}