22 lines
589 B
Nix
22 lines
589 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
services.factorio = {
|
|
enable = true;
|
|
package = pkgs.factorio-headless.overrideAttrs (o: o // rec {
|
|
name = "factorio-headless-${version}";
|
|
version = "1.1.42";
|
|
|
|
src = pkgs.fetchurl {
|
|
name = "factorio_headless_x64-${version}.tar.xz";
|
|
url = "https://factorio.com/get-download/${version}/headless/linux64";
|
|
sha256 = "sha256-QpCZBqJY3NU4FIJY3LDungPKBjhR09jKA9FxJpk7QdA=";
|
|
};
|
|
});
|
|
openFirewall = true;
|
|
admins = [ "sbruder" ];
|
|
game-name = "factorio.sbruder.de";
|
|
game-password = "MoinMoin";
|
|
};
|
|
}
|