summary refs log tree commit diff
path: root/nix/glesys.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-01-01T22·20+0100
committerVincent Ambo <tazjin@gmail.com>2018-01-01T22·20+0100
commita646f94d4702ddb27f07c1a23ae683278d205997 (patch)
tree27c1ec73656505374e76c4266b015db12682db16 /nix/glesys.nix
parent93681178132e8f6e6cb112f601bf4b220355bb86 (diff)
feat(nix): Add initial Tazblog Nix deployment configuration
Diffstat (limited to 'nix/glesys.nix')
-rw-r--r--nix/glesys.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nix/glesys.nix b/nix/glesys.nix
new file mode 100644
index 000000000000..b485d2637c67
--- /dev/null
+++ b/nix/glesys.nix
@@ -0,0 +1,24 @@
+{
+  sto-tazserve-1 = { pkgs, config, ... }: {
+    deployment.targetHost = "46.21.106.241";
+
+    # Configure root disk
+    fileSystems."/" = {
+      device = "/dev/disk/by-uuid/edb2a58c-561b-4597-9d88-9886cdfb1eac";
+      fsType = "ext4";
+    };
+
+    # 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
+    ];
+  };
+}