From 8febb2fad131dc1ff42a2c667b26b013d64c17b8 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 1 Jun 2024 19:25:59 +0530 Subject: repo: ./nixos -> ./os --- os/fscusat/modules/network.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 os/fscusat/modules/network.nix (limited to 'os/fscusat/modules/network.nix') diff --git a/os/fscusat/modules/network.nix b/os/fscusat/modules/network.nix new file mode 100644 index 0000000..53367f8 --- /dev/null +++ b/os/fscusat/modules/network.nix @@ -0,0 +1,18 @@ +{ ... }: + +let + wan = "ens18"; +in +{ + networking = { + interfaces.${wan}.ipv4.addresses = [{ + address = "10.0.8.101"; + prefixLength = 16; + }]; + defaultGateway = { + address = "10.0.0.1"; + interface = wan; + }; + nameservers = [ "10.0.0.2" "10.0.0.3" ]; + }; +} -- cgit v1.2.3