summaryrefslogtreecommitdiff
path: root/hosts/dspace/modules
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-01-09 11:51:51 +0530
committersinanmohd <sinan@sinanmohd.com>2024-01-09 12:03:25 +0530
commitca76ec99a638fb7ef8f54644695a47b627d64257 (patch)
treea5bcb5d8f3e5889890112a9dd68d6a4e9432cf8a /hosts/dspace/modules
parent9cc1ae1d48b23ec8211d3875e61ce5d1ea5e9f6c (diff)
hosts/dspace: init
Diffstat (limited to 'hosts/dspace/modules')
-rw-r--r--hosts/dspace/modules/network.nix18
1 files changed, 18 insertions, 0 deletions
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" ];
+ };
+}