mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
b3662053b3
more readable imho
14 lines
431 B
Nix
14 lines
431 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
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";
|
|
};
|
|
};
|
|
}
|