Add Factorio Server
This commit is contained in:
parent
db88613987
commit
d104278ad1
2 changed files with 18 additions and 0 deletions
17
bert/services/factorio.nix
Normal file
17
bert/services/factorio.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue