about summary refs log tree commit diff
path: root/infra/nixos/glesys.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-07-02T11·48+0100
committerVincent Ambo <tazjin@google.com>2019-07-02T11·48+0100
commite03f0630523d708e144cf340bb00dfd957e167b6 (patch)
tree6041b0ac0ddab2028488d6abf117bb783bae78ca /infra/nixos/glesys.nix
parent915a2f8464348e024e7d802b63d9f18eabd828e3 (diff)
parenta131b3051428d3abe220d172f93d09880b96222f (diff)
merge(infra): Embed infrastructure configuration into monorepo r/9
This contains DNS and NixOS module configuration.
Diffstat (limited to 'infra/nixos/glesys.nix')
-rw-r--r--infra/nixos/glesys.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/infra/nixos/glesys.nix b/infra/nixos/glesys.nix
new file mode 100644
index 000000000000..4cd66cb19595
--- /dev/null
+++ b/infra/nixos/glesys.nix
@@ -0,0 +1,18 @@
+{
+  sto-tazserve-1 = { pkgs, config, ... }: {
+    deployment.targetHost = "46.21.106.241";
+
+    # Configure network
+    networking.hostName = "sto-tazserve-1";
+    networking.interfaces.ens32.ip4 = [
+      { address = "46.21.106.241"; prefixLength = 23; }
+    ];
+    networking.defaultGateway = "46.21.106.1";
+    networking.nameservers = [ "195.20.206.80" "195.20.206.81" ];
+
+    imports = [
+      ./configuration.nix
+      ./tazserve.nix
+    ];
+  };
+}