From 374203c62ca1d811608b0272e93ee642cd9994bb Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 28 May 2022 01:56:33 +0200 Subject: [PATCH] oparl: set defaultGateway --- hosts/containers/oparl/default.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/hosts/containers/oparl/default.nix b/hosts/containers/oparl/default.nix index a617bf18..6c7621ba 100644 --- a/hosts/containers/oparl/default.nix +++ b/hosts/containers/oparl/default.nix @@ -35,19 +35,22 @@ in } ]; }; - networking.hostName = "oparl"; + networking = { + hostName = "oparl"; - networking.useDHCP = false; - networking.interfaces.eth0 = { useDHCP = false; - ipv4.addresses = [ { - address = netConfig.hosts4.${config.networking.hostName}; - prefixLength = netConfig.subnet4Len; - } ]; + interfaces.eth0 = { + useDHCP = false; + ipv4.addresses = [ { + address = netConfig.hosts4.${config.networking.hostName}; + prefixLength = netConfig.subnet4Len; + } ]; + }; + defaultGateway = netConfig.hosts4.serv-gw; + nameservers = [ + netConfig.hosts4.dnscache "9.9.9.9" + ]; }; - networking.nameservers = [ - netConfig.hosts4.dnscache "9.9.9.9" - ]; users.users.oparl = { isNormalUser = true;