mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
21 lines
541 B
Nix
21 lines
541 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
meta = {
|
|
maintainers = lib.teams.freedesktop.members;
|
|
};
|
|
|
|
options.programs.nm-applet.enable = lib.mkEnableOption "nm-applet";
|
|
|
|
config = lib.mkIf config.programs.nm-applet.enable {
|
|
systemd.user.services.nm-applet = {
|
|
description = "Network manager applet";
|
|
wantedBy = [ "graphical-session.target" ];
|
|
partOf = [ "graphical-session.target" ];
|
|
serviceConfig.ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet";
|
|
};
|
|
|
|
services.dbus.packages = [ pkgs.gcr ];
|
|
};
|
|
}
|