bert: Refactor factorio service
This commit is contained in:
parent
d45446b410
commit
766dc0011d
|
@ -1,14 +1,12 @@
|
|||
{
|
||||
# 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 {
|
||||
{pkgs, lib, ...}: {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"factorio-headless"
|
||||
];
|
||||
services.factorio = {
|
||||
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;
|
||||
nonBlockingSaving = true;
|
||||
game-name = "Chandler's Factorio Server";
|
||||
|
|
Loading…
Reference in a new issue