Merge pull request #51379 from Gerschtli/add/programs-nm-applet

nixos/nm-applet: add nm-applet program
This commit is contained in:
Jörg Thalheim 2018-12-02 11:49:45 +00:00 committed by GitHub
commit 31f67bed5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 2 deletions

View file

@ -39,7 +39,9 @@
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para /> <para>
<literal>./programs/nm-applet.nix</literal>
</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</section> </section>

View file

@ -106,6 +106,7 @@
./programs/mininet.nix ./programs/mininet.nix
./programs/mtr.nix ./programs/mtr.nix
./programs/nano.nix ./programs/nano.nix
./programs/nm-applet.nix
./programs/npm.nix ./programs/npm.nix
./programs/oblogout.nix ./programs/oblogout.nix
./programs/plotinus.nix ./programs/plotinus.nix

View file

@ -0,0 +1,14 @@
{ 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";
};
};
}

View file

@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
gnome3.gtk networkmanager libnotify libsecret gsettings-desktop-schemas gnome3.gtk networkmanager libnotify libsecret gsettings-desktop-schemas
polkit isocodes mobile-broadband-provider-info libgudev polkit isocodes mobile-broadband-provider-info libgudev
modemmanager jansson glib-networking modemmanager jansson glib-networking
libappindicator-gtk3 libappindicator-gtk3 gnome3.defaultIconTheme
] ++ stdenv.lib.optionals withGnome [ gnome3.gcr ]; # advanced certificate chooser ] ++ stdenv.lib.optionals withGnome [ gnome3.gcr ]; # advanced certificate chooser
nativeBuildInputs = [ meson ninja intltool pkgconfig wrapGAppsHook gobjectIntrospection python3 gtk-doc docbook_xsl docbook_xml_dtd_43 libxml2 ]; nativeBuildInputs = [ meson ninja intltool pkgconfig wrapGAppsHook gobjectIntrospection python3 gtk-doc docbook_xsl docbook_xml_dtd_43 libxml2 ];