summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/by-name/server1/configuration.nix1
-rw-r--r--hosts/by-name/server2/hardware.nix3
-rw-r--r--hosts/by-name/server2/networking.nix10
3 files changed, 9 insertions, 5 deletions
diff --git a/hosts/by-name/server1/configuration.nix b/hosts/by-name/server1/configuration.nix
index c0e76db..ab7c02a 100644
--- a/hosts/by-name/server1/configuration.nix
+++ b/hosts/by-name/server1/configuration.nix
@@ -25,6 +25,7 @@
     postgresql.enable = true;
     redlib.enable = true;
     users.enable = true;
+    persist.enable = true;
   };
 
   boot.tmp.cleanOnBoot = true;
diff --git a/hosts/by-name/server2/hardware.nix b/hosts/by-name/server2/hardware.nix
index 9abc64c..a6e4e40 100644
--- a/hosts/by-name/server2/hardware.nix
+++ b/hosts/by-name/server2/hardware.nix
@@ -9,6 +9,7 @@
     # FIXME: Find a better way to specify the disk
     disk = "/dev/vda";
   };
+
   boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
-  boot.initrd.kernelModules = [];
+  nixpkgs.hostPlatform = "x86_64-linux";
 }
diff --git a/hosts/by-name/server2/networking.nix b/hosts/by-name/server2/networking.nix
index 73ca88a..e6a96c2 100644
--- a/hosts/by-name/server2/networking.nix
+++ b/hosts/by-name/server2/networking.nix
@@ -2,22 +2,24 @@
   ipv4 = "185.16.61.132";
   ipv6 = "2a03:4000:a:106::1";
 in {
-  # This file was populated at runtime with the networking
-  # details gathered from the active system.
   networking = {
     nameservers = [
       "8.8.8.8"
     ];
+
     defaultGateway = {
-      address = ipv4;
+      address = "89.58.56.1";
       interface = "eth0";
     };
     defaultGateway6 = {
-      address = ipv6;
+      address = "fe80::1";
       interface = "eth0";
     };
+
     dhcpcd.enable = false;
+
     usePredictableInterfaceNames = lib.mkForce false;
+
     interfaces = {
       eth0 = {
         ipv4.addresses = [