diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-01-13 15:18:47 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-01-13 15:19:19 +0100 |
commit | 38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0 (patch) | |
tree | 0bad845b78323daf5bc2a1a968131bdbf696e882 /nixos/modules | |
parent | 665a0d28361507ead24998d0b17edbc7ecc828cb (diff) | |
download | nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.tar nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.tar.gz nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.tar.bz2 nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.tar.lz nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.tar.xz nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.tar.zst nixlib-38b6d7b60ea32c7a6ea6234e72c1ad3249fc70a0.zip |
nixos/chrome-gnome-shell: init
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 8d329b5b4b25..8cd557ea202c 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -200,6 +200,7 @@ ./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 diff --git a/nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix b/nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix new file mode 100644 index 000000000000..2740a22c7ca0 --- /dev/null +++ b/nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix @@ -0,0 +1,27 @@ +# 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 ]; + }; +} |