Lib/Networking: Update network manager profile generation helper
This commit is contained in:
@ -79,17 +79,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: What other config options are there?
|
|
||||||
mkStaticNetworkManagerProfile = {
|
mkStaticNetworkManagerProfile = {
|
||||||
id,
|
id,
|
||||||
interface,
|
interface,
|
||||||
ip,
|
ip,
|
||||||
router,
|
router,
|
||||||
nameserver,
|
nameserver ? "8.8.8.8;8.8.4.4;",
|
||||||
autoconnect,
|
autoconnect ? true,
|
||||||
|
priority ? 0,
|
||||||
}: {
|
}: {
|
||||||
connection = {
|
connection = {
|
||||||
inherit id autoconnect;
|
inherit id autoconnect;
|
||||||
|
autoconnect-priority = "${priority}";
|
||||||
type = "ethernet";
|
type = "ethernet";
|
||||||
interface-name = interface;
|
interface-name = interface;
|
||||||
};
|
};
|
||||||
@ -100,5 +101,9 @@
|
|||||||
gateway = router;
|
gateway = router;
|
||||||
dns = nameserver;
|
dns = nameserver;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ipv6 = {
|
||||||
|
method = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user