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