nixos/chrome-gnome-shell: init

Changed files
+31
nixos
modules
services
desktops
pkgs
desktops
gnome-3
extensions
chrome-gnome-shell
+1
nixos/modules/module-list.nix
···
./services/desktops/dleyna-server.nix
./services/desktops/geoclue2.nix
./services/desktops/gnome3/at-spi2-core.nix
./services/desktops/gnome3/evolution-data-server.nix
./services/desktops/gnome3/gnome-disks.nix
./services/desktops/gnome3/gnome-documents.nix
···
./services/desktops/dleyna-server.nix
./services/desktops/geoclue2.nix
./services/desktops/gnome3/at-spi2-core.nix
+
./services/desktops/gnome3/chrome-gnome-shell.nix
./services/desktops/gnome3/evolution-data-server.nix
./services/desktops/gnome3/gnome-disks.nix
./services/desktops/gnome3/gnome-documents.nix
+27
nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix
···
···
+
# Chrome GNOME Shell native host connector.
+
{ config, lib, pkgs, ... }:
+
+
with lib;
+
+
{
+
###### interface
+
options = {
+
services.gnome3.chrome-gnome-shell.enable = mkEnableOption ''
+
Chrome GNOME Shell native host connector, a DBus service
+
allowing to install GNOME Shell extensions from a web browser.
+
'';
+
};
+
+
+
###### implementation
+
config = mkIf config.services.gnome3.chrome-gnome-shell.enable {
+
environment.etc = {
+
"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";
+
"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";
+
};
+
+
environment.systemPackages = [ pkgs.chrome-gnome-shell ];
+
+
services.dbus.packages = [ pkgs.chrome-gnome-shell ];
+
};
+
}
+3
pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix
···
meta = with stdenv.lib; {
description = "GNOME Shell integration for Chrome";
license = licenses.gpl3;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
···
meta = with stdenv.lib; {
description = "GNOME Shell integration for Chrome";
+
longDescription = ''
+
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>.
+
'';
license = licenses.gpl3;
maintainers = gnome3.maintainers;
platforms = platforms.linux;