Home FoundryVTT Versions with NixOS
Post
Cancel

FoundryVTT Versions with NixOS

In my previous post I showed how to install Foundry VTT on NixOS for a very specific version. Here’s how you can use any version of Foundry thanks to the efforts of reckonrode.


FoundryVTT has many versions, and it’s not always appropriate to upgrade to the latest release. Many of the numerous add-ons may not support the latest version - especially when there is a major version update.

Thankfully reckonrode is doing a fantastic job. Their flake has every major version of Foundry back to version 7 and a few of version 6 (Foundry is currently on version 11). They also do a monthly refresh on the dependencies for each version ensuring the package stays up-to-date.

So - what if you want to use a specific version of Foundry? You just need to specify the package.

1
2
3
4
5
6
7
8
9
services.foundryvtt = {
  enable = true;
  hostName = "myhostname.com";
  proxySSL = true;
  proxyPort = 443;
  package = foundryvtt.packages.x86_64-linux.foundryvtt_11.overrideAttrs {
    version = "11.0.0+315";
  };
};

Not sure where to put this code? Check out the previous post on Foundry VTT on NixOS.

There are two important parts to this:

  • foundryvtt.packages.x86_64-linux.foundryvtt_11.overrideAttrs - In here we specify the major version of Foundry you wish to use. In this case, version 11.
  • version = "11.0.0+315"; - Here we specify the minor version. Note that this is specified with the +315 rather than the same formatting as on the Foundry releases page. I believe this is because the 315 in this case is a build number, not a specific version. Have a look at point 10 on semver.org.

And that’s it! Don’t forget to add your downloaded version of Foundry into the nix-store with something like nix-store --add-fixed sha256 FoundryVTT-11.315.zip and you’re ready to rebuild your system!

If you found this useful, then share this around to those that may find it useful! Please leave a comment down below if you have any questions or something else to say!