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,15 +1,10 @@
{ { config, pkgs, inputs, lib, ... }:
config, let
pkgs,
inputs,
lib,
...
}: let
foundryvtt = pkgs.fetchzip { foundryvtt = pkgs.fetchzip {
name = "foundryvtt"; name = "foundryvtt";
url = "file:///" + ./FoundryVTT-10.291.zip; url = "file:///" + ./FoundryVTT-11.300.zip;
postFetch = ""; postFetch = "";
sha256 = "sha256-DqRKu99xCjzrYalpICD7b0Kf3sqtXaxbL1G2sEgfFDc="; sha256 = "sha256-m6SuykveYUgiJVBThvZIuwYjPuE30YZ4cxOOfyqlHps=";
stripRoot = false; stripRoot = false;
}; };
in { in {
@ -31,24 +26,18 @@ in {
containers.foundryvtt = { containers.foundryvtt = {
autoStart = true; autoStart = true;
forwardPorts = [ forwardPorts = [{
{
containerPort = 30000; containerPort = 30000;
hostPort = 30000; hostPort = 30000;
} }];
];
bindMounts = { bindMounts = {
"/var/lib/foundryvtt" = { "/var/lib/foundryvtt" = {
hostPath = "/var/lib/foundryvtt"; hostPath = "/var/lib/foundryvtt";
isReadOnly = false; isReadOnly = false;
}; };
}; };
config = { config = { config, pkgs, ... }: {
config, system.stateVersion = "23.05";
pkgs,
...
}: {
system.stateVersion = "22.11";
systemd.services."foundryvtt" = { systemd.services."foundryvtt" = {
requires = [ "network-online.target" ]; requires = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];