fuuko: Add factorio
This commit is contained in:
parent
d6fd45cd57
commit
718e44402f
|
@ -9,6 +9,7 @@
|
||||||
./services/binary-cache.nix
|
./services/binary-cache.nix
|
||||||
./services/dnsmasq.nix
|
./services/dnsmasq.nix
|
||||||
./services/drone
|
./services/drone
|
||||||
|
./services/factorio.nix
|
||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/grafana.nix
|
./services/grafana.nix
|
||||||
./services/hedgedoc.nix
|
./services/hedgedoc.nix
|
||||||
|
|
21
machines/fuuko/services/factorio.nix
Normal file
21
machines/fuuko/services/factorio.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -35,6 +35,8 @@ in
|
||||||
"p7zip" # exception: rar source code is not free, but available; p7zip with `enableUnfree` includes it
|
"p7zip" # exception: rar source code is not free, but available; p7zip with `enableUnfree` includes it
|
||||||
|
|
||||||
# games (okay if they run sandboxed)
|
# games (okay if they run sandboxed)
|
||||||
|
"factorio"
|
||||||
|
"factorio-headless"
|
||||||
"osu-lazer" # also is free except for one dependency
|
"osu-lazer" # also is free except for one dependency
|
||||||
"steam"
|
"steam"
|
||||||
"steam-original"
|
"steam-original"
|
||||||
|
|
Loading…
Reference in a new issue