15 lines
484 B
Nix
15 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/aa2922b69f0245008d93e9edf9f34894db724d89.tar.gz") {
|
|
config.allowUnfree = true;
|
|
}).factorio-headless;
|
|
openFirewall = true;
|
|
nonBlockingSaving = true;
|
|
game-name = "Chandler's Factorio Server";
|
|
description = "Job 28:2";
|
|
};
|
|
}
|