nixos-config/machines/fuuko/services/factorio.nix

22 lines
589 B
Nix
Raw Normal View History

2021-10-15 15:54:48 +02:00
{ lib, pkgs, ... }:
{
services.factorio = {
enable = true;
package = pkgs.factorio-headless.overrideAttrs (o: o // rec {
name = "factorio-headless-${version}";
2021-10-31 09:09:50 +01:00
version = "1.1.42";
2021-10-15 15:54:48 +02:00
src = pkgs.fetchurl {
name = "factorio_headless_x64-${version}.tar.xz";
url = "https://factorio.com/get-download/${version}/headless/linux64";
2021-10-31 09:09:50 +01:00
sha256 = "sha256-QpCZBqJY3NU4FIJY3LDungPKBjhR09jKA9FxJpk7QdA=";
2021-10-15 15:54:48 +02:00
};
});
openFirewall = true;
admins = [ "sbruder" ];
game-name = "factorio.sbruder.de";
game-password = "MoinMoin";
};
}