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 = {
|
||||
id,
|
||||
interface,
|
||||
ip,
|
||||
router,
|
||||
nameserver,
|
||||
autoconnect,
|
||||
nameserver ? "8.8.8.8;8.8.4.4;",
|
||||
autoconnect ? true,
|
||||
priority ? 0,
|
||||
}: {
|
||||
connection = {
|
||||
inherit id autoconnect;
|
||||
autoconnect-priority = "${priority}";
|
||||
type = "ethernet";
|
||||
interface-name = interface;
|
||||
};
|
||||
@ -100,5 +101,9 @@
|
||||
gateway = router;
|
||||
dns = nameserver;
|
||||
};
|
||||
|
||||
ipv6 = {
|
||||
method = "disabled";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user