home-manager/modules/services/network-manager-applet.nix

28 lines
576 B
Nix
Raw Normal View History

2017-01-07 19:16:26 +01:00
{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.network-manager-applet = {
enable = mkEnableOption "the Network Manager applet";
};
};
config = mkIf config.services.network-manager-applet.enable {
systemd.user.services.network-manager-applet = {
Unit = {
Description = "Network Manager applet";
};
Install = {
WantedBy = [ "graphical-session.target" ];
2017-01-07 19:16:26 +01:00
};
Service = {
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable";
};
};
};
}