summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-07-20 16:16:58 +0300
committertzlil <tzlils@protonmail.com>2023-07-20 16:16:58 +0300
commit13b630f31bf2bba22eb81531efae78cc334b76d3 (patch)
treeae8692a5b9a0b9c50fb40dc5bdf991a320526dd2 /hosts
parent5d01fd8493a120fc714e9adaf758367340e57526 (diff)
uhh a bunch of crap idk terraria
Diffstat (limited to 'hosts')
-rw-r--r--hosts/laptop/cfg.nix6
-rw-r--r--hosts/vps/cfg.nix17
2 files changed, 23 insertions, 0 deletions
diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix
index 4e2f843..ab372c2 100644
--- a/hosts/laptop/cfg.nix
+++ b/hosts/laptop/cfg.nix
@@ -108,6 +108,12 @@
         group = "users";
       }
       {
+        directory = "/home/tzlil/.local/share/Terraria";
+        user = "tzlil";
+        group = "users";
+      }
+
+      {
         directory = "/home/tzlil/.local/share/Steam";
         user = "tzlil";
         group = "users";
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;
+    };
   };
 }