bert: Refactor factorio service
This commit is contained in:
parent
d45446b410
commit
766dc0011d
|
@ -1,14 +1,12 @@
|
||||||
{
|
{pkgs, lib, ...}: {
|
||||||
# nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
# "factorio-headless"
|
"factorio-headless"
|
||||||
# ];
|
];
|
||||||
services.factorio = let
|
services.factorio = {
|
||||||
factorio-nixpkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/7e35ac30ea1d236419653182559367ecd8a30675.tar.gz") {
|
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = factorio-nixpkgs.factorio-headless;
|
package = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/2c7baaaae909d8d7a50fc33beb593cde9d40e2ce.tar.gz") {
|
||||||
|
config.allowUnfree = true;
|
||||||
|
}).factorio-headless;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
nonBlockingSaving = true;
|
nonBlockingSaving = true;
|
||||||
game-name = "Chandler's Factorio Server";
|
game-name = "Chandler's Factorio Server";
|
||||||
|
|
Loading…
Reference in a new issue