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