1 { config, lib, pkgs, ... }:
5 maintainers = lib.teams.freedesktop.members;
8 options.programs.nm-applet = {
9 enable = lib.mkEnableOption "nm-applet, a NetworkManager control applet for GNOME";
11 indicator = lib.mkOption {
12 type = lib.types.bool;
15 Whether to use indicator instead of status icon.
16 It is needed for Appindicator environments, like Enlightenment.
21 config = lib.mkIf config.programs.nm-applet.enable {
22 systemd.user.services.nm-applet = {
23 description = "Network manager applet";
24 wantedBy = [ "graphical-session.target" ];
25 partOf = [ "graphical-session.target" ];
26 serviceConfig.ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet ${lib.optionalString config.programs.nm-applet.indicator "--indicator"}";
29 services.dbus.packages = [ pkgs.gcr ];