From 75ca13ef0147a0e265e4c595ae2d87e27e7d47cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Wed, 7 Jun 2023 17:46:42 +0100 Subject: [PATCH] new version of foundry --- nixos/boxes/vpsfree1/FoundryVTT-11.300.zip | 3 ++ nixos/boxes/vpsfree1/foundryvtt.nix | 37 ++++++++-------------- 2 files changed, 16 insertions(+), 24 deletions(-) create mode 100644 nixos/boxes/vpsfree1/FoundryVTT-11.300.zip diff --git a/nixos/boxes/vpsfree1/FoundryVTT-11.300.zip b/nixos/boxes/vpsfree1/FoundryVTT-11.300.zip new file mode 100644 index 00000000..d16cb391 --- /dev/null +++ b/nixos/boxes/vpsfree1/FoundryVTT-11.300.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bedc8f7070c0c2c5bdad52101884757d459d3dc5852ec46c3886353d940c1e28 +size 217440507 diff --git a/nixos/boxes/vpsfree1/foundryvtt.nix b/nixos/boxes/vpsfree1/foundryvtt.nix index 4149003a..f8d908b3 100644 --- a/nixos/boxes/vpsfree1/foundryvtt.nix +++ b/nixos/boxes/vpsfree1/foundryvtt.nix @@ -1,19 +1,14 @@ -{ - config, - pkgs, - inputs, - lib, - ... -}: let +{ config, pkgs, inputs, lib, ... }: +let foundryvtt = pkgs.fetchzip { name = "foundryvtt"; - url = "file:///" + ./FoundryVTT-10.291.zip; + url = "file:///" + ./FoundryVTT-11.300.zip; postFetch = ""; - sha256 = "sha256-DqRKu99xCjzrYalpICD7b0Kf3sqtXaxbL1G2sEgfFDc="; + sha256 = "sha256-m6SuykveYUgiJVBThvZIuwYjPuE30YZ4cxOOfyqlHps="; stripRoot = false; }; in { - imports = [../nginx.nix]; + imports = [ ../nginx.nix ]; services.nginx = { clientMaxBodySize = "300M"; @@ -31,27 +26,21 @@ in { containers.foundryvtt = { autoStart = true; - forwardPorts = [ - { - containerPort = 30000; - hostPort = 30000; - } - ]; + forwardPorts = [{ + containerPort = 30000; + hostPort = 30000; + }]; bindMounts = { "/var/lib/foundryvtt" = { hostPath = "/var/lib/foundryvtt"; isReadOnly = false; }; }; - config = { - config, - pkgs, - ... - }: { - system.stateVersion = "22.11"; + config = { config, pkgs, ... }: { + system.stateVersion = "23.05"; systemd.services."foundryvtt" = { - requires = ["network-online.target"]; - wantedBy = ["multi-user.target"]; + requires = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; script = '' mkdir -p /var/lib/foundryvtt ${pkgs.nodejs-18_x}/bin/node ${foundryvtt}/resources/app/main.js --dataPath=/var/lib/foundryvtt