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/services/desktops | |
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/services/desktops')
-rw-r--r-- | nixos/modules/services/desktops/gnome3/chrome-gnome-shell.nix | 27 |
1 files changed, 27 insertions, 0 deletions
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 ]; + }; +} |