fuuko: Add factorio

This commit is contained in:
Simon Bruder 2021-10-15 15:54:48 +02:00
parent d6fd45cd57
commit 718e44402f
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 24 additions and 0 deletions

View file

@ -9,6 +9,7 @@
./services/binary-cache.nix
./services/dnsmasq.nix
./services/drone
./services/factorio.nix
./services/gitea.nix
./services/grafana.nix
./services/hedgedoc.nix

View file

@ -0,0 +1,21 @@
{ lib, pkgs, ... }:
{
services.factorio = {
enable = true;
package = pkgs.factorio-headless.overrideAttrs (o: o // rec {
name = "factorio-headless-${version}";
version = "1.1.41";
src = pkgs.fetchurl {
name = "factorio_headless_x64-${version}.tar.xz";
url = "https://factorio.com/get-download/${version}/headless/linux64";
sha256 = "sha256-gkzUE+0Fbkoo285290OWHULlrvh7OF4nqcV/HpJKml4=";
};
});
openFirewall = true;
admins = [ "sbruder" ];
game-name = "factorio.sbruder.de";
game-password = "MoinMoin";
};
}

View file

@ -35,6 +35,8 @@ in
"p7zip" # exception: rar source code is not free, but available; p7zip with `enableUnfree` includes it
# games (okay if they run sandboxed)
"factorio"
"factorio-headless"
"osu-lazer" # also is free except for one dependency
"steam"
"steam-original"