fixes
This commit is contained in:
@@ -8,7 +8,7 @@ with lib;
|
||||
let
|
||||
cfg = config.${namespace}.network;
|
||||
|
||||
profiles =
|
||||
profiles =
|
||||
let
|
||||
make =
|
||||
name: profile:
|
||||
@@ -21,16 +21,19 @@ let
|
||||
autoconnect-priority = profile.priority;
|
||||
interface-name = cfg.ipv4.interface;
|
||||
};
|
||||
ipv4 =
|
||||
{
|
||||
method = cfg.ipv4.method;
|
||||
} // (if (cfg.ipv4.method == "auto") then { }
|
||||
else
|
||||
{
|
||||
address = cfg.ipv4.address;
|
||||
gateway = cfg.ipv4.gateway;
|
||||
dns = cfg.ipv4.dns;
|
||||
});
|
||||
ipv4 = {
|
||||
method = cfg.ipv4.method;
|
||||
}
|
||||
// (
|
||||
if (cfg.ipv4.method == "auto") then
|
||||
{ }
|
||||
else
|
||||
{
|
||||
address = cfg.ipv4.address;
|
||||
gateway = cfg.ipv4.gateway;
|
||||
dns = cfg.ipv4.dns;
|
||||
}
|
||||
);
|
||||
ipv6 = {
|
||||
addr-gen-mode = "stable-privacy";
|
||||
method = "auto";
|
||||
|
||||
Reference in New Issue
Block a user