mirror of
https://github.com/nix-community/home-manager
synced 2024-11-15 23:59:45 +01:00
dd0e71d686
Also make sure graphical-session.target is generated.
27 lines
576 B
Nix
27 lines
576 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 = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable";
|
|
};
|
|
};
|
|
};
|
|
}
|