Merge pull request #51379 from Gerschtli/add/programs-nm-applet
nixos/nm-applet: add nm-applet program
This commit is contained in:
commit
31f67bed5b
4 changed files with 19 additions and 2 deletions
|
@ -39,7 +39,9 @@
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para />
|
<para>
|
||||||
|
<literal>./programs/nm-applet.nix</literal>
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -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
|
||||||
|
|
14
nixos/modules/programs/nm-applet.nix
Normal file
14
nixos/modules/programs/nm-applet.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in a new issue