1

Lib/Networking: Update network manager profile generation helper

This commit is contained in:
2025-07-11 13:57:17 +02:00
parent 7a5f89cf90
commit a2137cf459

View File

@ -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";
};
}; };
} }