fix systemd network
This commit is contained in:
parent
52144c1a5c
commit
f10ee48f79
1 changed files with 4 additions and 10 deletions
14
flake.nix
14
flake.nix
|
@ -621,9 +621,7 @@
|
|||
};
|
||||
addresses = [
|
||||
{
|
||||
addressConfig = {
|
||||
Address = "${cfg.hosts.${name}.pod_subnet.gateway}/${toString cfg.hosts.${name}.pod_subnet.mask}";
|
||||
};
|
||||
Address = "${cfg.hosts.${name}.pod_subnet.gateway}/${toString cfg.hosts.${name}.pod_subnet.mask}";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -673,9 +671,7 @@
|
|||
map
|
||||
(
|
||||
n: {
|
||||
addressConfig = {
|
||||
Address = "${cfg.hosts.${n}.wireguard_subnet.address}/${toString cfg.hosts.${n}.wireguard_subnet.mask}";
|
||||
};
|
||||
Address = "${cfg.hosts.${n}.wireguard_subnet.address}/${toString cfg.hosts.${n}.wireguard_subnet.mask}";
|
||||
}
|
||||
)
|
||||
(
|
||||
|
@ -686,10 +682,8 @@
|
|||
map
|
||||
(
|
||||
n: {
|
||||
routeConfig = {
|
||||
Destination = "${cfg.hosts.${n}.pod_subnet.address}/${toString cfg.hosts.${n}.pod_subnet.mask}";
|
||||
Gateway = cfg.hosts.${n}.wireguard_subnet.address;
|
||||
};
|
||||
Destination = "${cfg.hosts.${n}.pod_subnet.address}/${toString cfg.hosts.${n}.pod_subnet.mask}";
|
||||
Gateway = cfg.hosts.${n}.wireguard_subnet.address;
|
||||
}
|
||||
)
|
||||
(
|
||||
|
|
Loading…
Add table
Reference in a new issue