this is a useless description
This commit is contained in:
parent
70ebb4de20
commit
11a3d309ba
7 changed files with 126 additions and 18 deletions
35
modules/game/server/factorio/factorio.nix
Normal file
35
modules/game/server/factorio/factorio.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{pkgs, ...}: {
|
||||
# Also enable non-free packages or else the factorio download will fail:
|
||||
#nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
factorio-headless
|
||||
];
|
||||
|
||||
services.factorio = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
package = pkgs.factorio-headless.override {
|
||||
versionsJson = ./versions.json;
|
||||
};
|
||||
|
||||
#mods =
|
||||
# let
|
||||
# inherit (pkgs) lib;
|
||||
# modDir = /opt/factorio-mods;
|
||||
# modList = lib.pipe modDir [
|
||||
# builtins.readDir
|
||||
# (lib.filterAttrs (k: v: v == "regular"))
|
||||
# (lib.mapAttrsToList (k: v: k))
|
||||
# (builtins.filter (lib.hasSuffix ".zip"))
|
||||
# ];
|
||||
# modToDrv = modFileName:
|
||||
# pkgs.runCommand "copy-factorio-mods" {} ''
|
||||
# mkdir $out
|
||||
# cp ${modDir + "/${modFileName}"} $out/${modFileName}
|
||||
# ''
|
||||
# // { deps = []; };
|
||||
# in
|
||||
# builtins.map modToDrv modList;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue