factorio: automate updating server

This commit is contained in:
Leonardo Eugênio 2024-10-31 19:59:35 -03:00
parent 4e1ca64d0e
commit 7ccbca83bc
4 changed files with 28 additions and 8 deletions

View file

@ -2,14 +2,7 @@
{
services.factorio = {
enable = true;
package = pkgs.unstable.factorio-headless.overrideAttrs (_: rec {
version = "2.0.12";
src = pkgs.fetchurl {
name = "factorio_headless_x64-${version}.tar.xz";
url = "https://www.factorio.com/get-download/${version}/headless/linux64";
hash = "sha256-0vgg5eJ6ZEFO0TUixNsByCs8YyPGOArgqnXbT5RIjTE=";
};
});
package = pkgs.factorio-headless; # I override this in ./pkgs
public = true;
lan = true;
openFirewall = true;