File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
modules/services/networking Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 598598 ] ;
599599
600600 systemd . services . NetworkManager = {
601- wantedBy = [ "network .target" ] ;
601+ wantedBy = [ "multi-user .target" ] ;
602602 restartTriggers = [ configFile ] ;
603603
604604 aliases = [ "dbus-org.freedesktop.NetworkManager.service" ] ;
614614 } ;
615615
616616 systemd . services . NetworkManager-dispatcher = {
617- wantedBy = [ "network .target" ] ;
617+ wantedBy = [ "multi-user .target" ] ;
618618 restartTriggers = [
619619 configFile
620620 overrideNameserversScript
Original file line number Diff line number Diff line change 3333 } ;
3434 } extraConfig ;
3535 testCases = {
36+ startup = {
37+ name = "startup" ;
38+ nodes . client = {
39+ networking . useDHCP = false ;
40+ networking . networkmanager . enable = true ;
41+ } ;
42+ testScript = ''
43+ with subtest("NetworkManager is started automatically at boot"):
44+ client.wait_for_unit("NetworkManager.service")
45+ '' ;
46+ } ;
3647 static = {
3748 name = "static" ;
3849 nodes = {
You can’t perform that action at this time.
0 commit comments