Add Factorio Server

This commit is contained in:
Chandler Swift 2024-10-31 02:04:15 -05:00
parent db88613987
commit d104278ad1
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
./services/factorio.nix
./services/http/index.nix ./services/http/index.nix
./services/monitoring.nix ./services/monitoring.nix
]; ];

View file

@ -0,0 +1,17 @@
{
# nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
# "factorio-headless"
# ];
services.factorio = let
factorio-nixpkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/7e35ac30ea1d236419653182559367ecd8a30675.tar.gz") {
config.allowUnfree = true;
};
in {
enable = true;
package = factorio-nixpkgs.factorio-headless;
openFirewall = true;
nonBlockingSaving = true;
game-name = "Chandler's Factorio Server";
description = "Job 28:2";
};
}