From 13b630f31bf2bba22eb81531efae78cc334b76d3 Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 20 Jul 2023 16:16:58 +0300 Subject: uhh a bunch of crap idk terraria --- hosts/vps/cfg.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'hosts/vps') 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; + }; }; } -- cgit 1.4.1