new version of foundry

This commit is contained in:
Cyryl Płotnicki 2023-06-07 17:46:42 +01:00
parent 97c7305396
commit 75ca13ef01
2 changed files with 16 additions and 24 deletions

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bedc8f7070c0c2c5bdad52101884757d459d3dc5852ec46c3886353d940c1e28
size 217440507

View file

@ -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