summary refs log tree commit diff
path: root/hosts/vps
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vps')
-rw-r--r--hosts/vps/cfg.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/vps/cfg.nix b/hosts/vps/cfg.nix
index 2ec6cd4..7fc5f86 100644
--- a/hosts/vps/cfg.nix
+++ b/hosts/vps/cfg.nix
@@ -70,5 +70,22 @@
     };
 
     networking.networkmanager.enable = lib.mkForce false;
+
+
+    nixpkgs.config.allowUnfree = true;
+    environment.persistence."/nix/persist".directories = [
+      {
+        directory = config.services.terraria.dataDir;
+        user = "terraria";
+        group = "terraria";
+      }
+    ];
+
+    services.terraria = {
+      enable = true;
+      worldPath = "${config.services.terraria.dataDir}/14.wld";
+      password = "???";
+      openFirewall = true;
+    };
   };
 }