From ca76ec99a638fb7ef8f54644695a47b627d64257 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 9 Jan 2024 11:51:51 +0530 Subject: hosts/dspace: init --- hosts/dspace/modules/network.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hosts/dspace/modules/network.nix (limited to 'hosts/dspace/modules') diff --git a/hosts/dspace/modules/network.nix b/hosts/dspace/modules/network.nix new file mode 100644 index 0000000..007cfba --- /dev/null +++ b/hosts/dspace/modules/network.nix @@ -0,0 +1,18 @@ +{ ... }: + +let + wan = "ens18"; +in +{ + networking = { + interfaces.${wan}.ipv4.addresses = [{ + address = "10.0.8.107"; + prefixLength = 16; + }]; + defaultGateway = { + address = "10.0.0.1"; + interface = wan; + }; + nameservers = [ "10.0.0.2" "10.0.0.3" ]; + }; +} -- cgit v1.2.3