From 89fe727b3a1dcc92df2abbc8a8d7c3ad7c39c125 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 11 Jul 2025 13:57:17 +0200 Subject: [PATCH] Lib/Networking: Update network manager profile generation helper --- lib/networking.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/networking.nix b/lib/networking.nix index 124873fb..371c74cd 100644 --- a/lib/networking.nix +++ b/lib/networking.nix @@ -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"; + }; }; }