nixpkgs-fmt

This commit is contained in:
Grigory Shipunov 2022-07-13 15:52:14 +02:00
parent 9bdeafe7f0
commit 428a122acd
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C

View file

@ -40,20 +40,20 @@ systemd.network = {
}; };
}; };
networks."10-ether-bond" = { networks."10-ether-bond" = {
matchConfig = { Name = "enp53s0"; }; matchConfig.Name = "enp53s0";
networkConfig = { networkConfig = {
Bond = "james"; Bond = "james";
PrimarySlave = true; PrimarySlave = true;
}; };
}; };
networks."10-wlan-bond" = { networks."10-wlan-bond" = {
matchConfig = { Name = "wlan0"; }; matchConfig.Name = "wlan0";
networkConfig = { networkConfig = {
Bond = "james"; Bond = "james";
}; };
}; };
networks."10-james-bond" = { networks."10-james-bond" = {
matchConfig = { Name = "james"; }; matchConfig.Name = "james";
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
IPv6AcceptRA = true; IPv6AcceptRA = true;
@ -83,7 +83,7 @@ systemd.network = {
]; ];
}; };
networks."30-wg-dumpdvb" = { networks."30-wg-dumpdvb" = {
matchConfig = { Name = "wg-dumpdvb"; }; matchConfig.Name = "wg-dumpdvb";
networkConfig = { networkConfig = {
Address = "10.13.37.3/24"; Address = "10.13.37.3/24";
IPv6AcceptRA = true; IPv6AcceptRA = true;
@ -115,7 +115,7 @@ systemd.network = {
]; ];
}; };
networks."10-wg-oxalab" = { networks."10-wg-oxalab" = {
matchConfig = { Name = "wg-oxalab"; }; matchConfig.Name = "wg-oxalab";
networkConfig = { networkConfig = {
Address = "10.66.66.10/24"; Address = "10.66.66.10/24";
IPv6AcceptRA = true; IPv6AcceptRA = true;
@ -148,7 +148,7 @@ systemd.network = {
]; ];
}; };
networks."10-wg-zentralwerk" = { networks."10-wg-zentralwerk" = {
matchConfig = { Name = "wg-zentralwerk"; }; matchConfig.Name = "wg-zentralwerk";
networkConfig = { networkConfig = {
Address = "172.20.76.226/21"; Address = "172.20.76.226/21";
IPv6AcceptRA = true; IPv6AcceptRA = true;
@ -196,19 +196,23 @@ systemd.network = {
]; ];
}; };
networks."10-wg-mullvad" = { networks."10-wg-mullvad" = {
address = [ "10.65.79.164/32" "fc00:bbbb:bbbb:bb01::2:4fa3/128" ];
matchConfig.Name = "wg-mullvad"; matchConfig.Name = "wg-mullvad";
address = [ "10.65.79.164/32" "fc00:bbbb:bbbb:bb01::2:4fa3/128" ];
networkConfig = { networkConfig = {
DNS = "10.64.0.1"; DNS = "10.64.0.1";
DNSDefaultRoute = true; DNSDefaultRoute = true;
Domains = [ "~." ]; Domains = [ "~." ];
}; };
routes = map (gate: { routes = map
(gate: {
routeConfig = { routeConfig = {
Gateway = gate; Gateway = gate;
Table = 1000; Table = 1000;
}; };
}) [ "0.0.0.0" "::" ]; }) [
"0.0.0.0"
"::"
];
routingPolicyRules = [ routingPolicyRules = [
{ {
@ -228,7 +232,9 @@ systemd.network = {
Priority = 9; Priority = 9;
}; };
} }
] ++ map (net: { # only route global addresses over VPN ] ++ map
(net: {
# only route global addresses over VPN
routingPolicyRuleConfig = { routingPolicyRuleConfig = {
Priority = 8; Priority = 8;
To = net; To = net;