1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-15 23:59:45 +01:00
home-manager/modules/services/network-manager-applet.nix
Robert Helgesson d7d02c3ce8
Initial import
2017-01-14 13:15:24 +01:00

27 lines
563 B
Nix

{ 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 = [ "xorg.target" ];
};
Service = {
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable";
};
};
};
}