NetworkManager: Difference between revisions

Klinger (talk | contribs)
m Category:DNS added
Axka (talk | contribs)
m Link to link aggregation in Network article
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
NetworkManager is a program for configuring network devices on Linux. It is widely used by several Linux distributions and can be optionally enabled on [[NixOS]] for non-declarative network configuration. It also tends to be the default for many desktop environments, such as [[GNOME]] or [[KDE|KDE Plasma]].
NetworkManager is a program for configuring network devices on Linux. It is widely used by several Linux distributions and recommended for new [[NixOS]] installs. It provides non-declarative, interactive network configuration and tends to be the default for many desktop environments, such as [[GNOME]] or [[KDE|KDE Plasma]].


== Installation ==
== Installation ==
Line 6: Line 6:
</syntaxhighlight>In order to allow access to the NetworkManager daemon and be able to configure and add new networks, the user must be added to the <code>networkmanager</code> group. This can be done through the <code>extraGroups</code> option for a defined user:<syntaxhighlight lang="nix">
</syntaxhighlight>In order to allow access to the NetworkManager daemon and be able to configure and add new networks, the user must be added to the <code>networkmanager</code> group. This can be done through the <code>extraGroups</code> option for a defined user:<syntaxhighlight lang="nix">
users.users.<name>.extraGroups = [ "networkmanager" ];
users.users.<name>.extraGroups = [ "networkmanager" ];
</syntaxhighlight>By default, NetworkManager comes with <code>nmcli</code> and <code>nmtui</code> as user interfaces, however, a GTK interface called <code>nm-connection-editor</code> can be found in the <code>nm-applet</code> package.
</syntaxhighlight>By default, NetworkManager comes with <code>nmcli</code> and <code>nmtui</code> as user interfaces, however, a GTK interface called <code>nm-connection-editor</code> can be found in the <code>networkmanagerapplet</code> package.


== Usage ==
== Usage ==
Line 13: Line 13:


== Configuration ==
== Configuration ==
The NixOS modules offer additional configurations that can be setup very easily.
The NixOS modules offer additional configurations that can be setup very easily. For a full list of module options, refer to {{nixos:option|networking.networkmanager}}.


=== DNS Management ===
=== DNS Management ===
Line 40: Line 40:
networking.networkmanager.wifi.powersave = true;
networking.networkmanager.wifi.powersave = true;
</syntaxhighlight>Please see [[Power Management]] for more tips relating to power-saving tips and tricks for NixOS.
</syntaxhighlight>Please see [[Power Management]] for more tips relating to power-saving tips and tricks for NixOS.
=== Link aggregation ===
See [[Networking#Link aggregation]].
[[Category:Networking]]
[[Category:Networking]]
[[Category:Desktop]]
[[Category:Desktop]]