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