lib/default-gateway.nix: set only when running without systemd-networkd

this would need GatewayOnLink=yes for the route on the interface
This commit is contained in:
Astro 2021-03-06 01:10:53 +01:00
parent d6ca053da1
commit fca9a7f859
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{ ... }:
{
c3d2 = { isInHq = true; };
}

View File

@ -1,5 +1,6 @@
{ config, pkgs, lib, strings, ... }:
lib.optional !config.networking.useNetworkd
{
networking.defaultGateway = "172.22.99.4";
}