16 lines
498 B
Nix
16 lines
498 B
Nix
{pkgs, lib, ...}: {
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
"factorio-headless"
|
|
];
|
|
services.factorio = {
|
|
enable = true;
|
|
package = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/2c7baaaae909d8d7a50fc33beb593cde9d40e2ce.tar.gz") {
|
|
config.allowUnfree = true;
|
|
}).factorio-headless;
|
|
openFirewall = true;
|
|
nonBlockingSaving = true;
|
|
game-name = "Chandler's Factorio Server";
|
|
description = "Job 28:2";
|
|
};
|
|
}
|