2018-01-13 15:18:47 +01:00
|
|
|
# Chrome GNOME Shell native host connector.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2020-04-02 02:16:24 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
# Added 2021-05-07
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "chrome-gnome-shell" "enable" ]
|
|
|
|
[ "services" "gnome" "chrome-gnome-shell" "enable" ]
|
|
|
|
)
|
|
|
|
];
|
|
|
|
|
2018-01-13 15:18:47 +01:00
|
|
|
###### interface
|
|
|
|
options = {
|
2021-05-07 23:18:14 +02:00
|
|
|
services.gnome.chrome-gnome-shell.enable = mkEnableOption ''
|
2018-01-13 15:18:47 +01:00
|
|
|
Chrome GNOME Shell native host connector, a DBus service
|
|
|
|
allowing to install GNOME Shell extensions from a web browser.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2021-05-07 23:18:14 +02:00
|
|
|
config = mkIf config.services.gnome.chrome-gnome-shell.enable {
|
2018-01-13 15:18:47 +01:00
|
|
|
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 ];
|
2019-09-06 05:07:59 +02:00
|
|
|
|
|
|
|
nixpkgs.config.firefox.enableGnomeExtensions = true;
|
2018-01-13 15:18:47 +01:00
|
|
|
};
|
|
|
|
}
|