From 33f590b214a0cbba0006439e619ebe8cef8f1287 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 23 Mar 2026 21:46:54 -0400 Subject: [PATCH] added systemd service for vintagestory-server --- modules/machine/thancred/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/machine/thancred/configuration.nix b/modules/machine/thancred/configuration.nix index 5e2bc68..8a7e277 100644 --- a/modules/machine/thancred/configuration.nix +++ b/modules/machine/thancred/configuration.nix @@ -63,6 +63,20 @@ vintage-story.packages.${pkgs.system}.default ]; + systemd.services.vintagestory-server = { + description = "Vintage Story Server"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + serviceConfig = { + Type = "simple"; + User = userName; + WorkingDirectory = "/home/${userName}"; + ExecStart = "${vintage-story.packages.${pkgs.system}.default}/bin/vintagestory-server"; + Restart = "on-failure"; + RestartSec = "5s"; + }; + }; + # Add username to groups "wheel" and "video" - more may be added here later users = { groups.hazel = {};