git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/chrome-gnome-shell: init
commit38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0 authorJan Tojnar <jtojnar@gmail.com> dateSat 13 Jan 2018, 15:18 (9 years ago) parent665a0d2
3 files changed+31
nixos/modules/module-list.nix+1 nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix+27 pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix+3
nixos/modules/module-list.nix+1
@@ -200,6 +200,7 @@
200200 ./services/desktops/dleyna-server.nix
201201 ./services/desktops/geoclue2.nix
202202 ./services/desktops/gnome3/at-spi2-core.nix
203+ ./services/desktops/gnome3/chrome-gnome-shell.nix
203204 ./services/desktops/gnome3/evolution-data-server.nix
204205 ./services/desktops/gnome3/gnome-disks.nix
205206 ./services/desktops/gnome3/gnome-documents.nix
nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nixnew file+27
@@ -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+}
pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix+3
@@ -26,6 +26,9 @@ in stdenv.mkDerivation rec {
2626
2727 meta = with stdenv.lib; {
2828 description = "GNOME Shell integration for Chrome";
29+ longDescription = ''
30+ To use the integration, install the <link xlink:href="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome/Installation">browser extension</link>, and then set <option>services.gnome3.chrome-gnome-shell.enable</option> to <literal>true</literal>.
31+ '';
2932 license = licenses.gpl3;
3033 maintainers = gnome3.maintainers;
3134 platforms = platforms.linux;