2023-01-28 21:27:52 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2022-10-17 13:56:48 +00:00
|
|
|
psCfg = config.pub-solar;
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
|
|
|
|
|
|
|
far-reach = pkgs.stdenv.mkDerivation rec {
|
|
|
|
pname = "factorio-far-reach";
|
|
|
|
version = "1.1.2";
|
|
|
|
src = ./far-reach_1.1.2.zip;
|
2023-01-28 21:27:52 +00:00
|
|
|
phases = ["installPhase"];
|
|
|
|
deps = [];
|
2022-10-17 13:56:48 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp $src far-reach_1.1.2.zip
|
|
|
|
'';
|
|
|
|
};
|
2023-01-28 21:27:52 +00:00
|
|
|
in {
|
2024-01-29 22:03:27 +00:00
|
|
|
services.factorio = {
|
|
|
|
enable = true;
|
|
|
|
port = 34197; # The default, but make it explicit
|
|
|
|
lan = true;
|
|
|
|
game-password = "pls-dont-grief";
|
|
|
|
admins = [
|
|
|
|
"doubtwriter"
|
|
|
|
"kattykat"
|
|
|
|
];
|
|
|
|
openFirewall = true;
|
|
|
|
autosave-interval = 3;
|
|
|
|
game-name = "Babes plays v2";
|
|
|
|
requireUserVerification = false;
|
|
|
|
bind = "::";
|
|
|
|
mods = [
|
|
|
|
far-reach
|
|
|
|
];
|
2022-10-17 13:56:48 +00:00
|
|
|
};
|
2024-01-29 22:03:27 +00:00
|
|
|
|
2024-08-18 22:22:59 +00:00
|
|
|
networking.firewall.allowedUDPPorts = [34197];
|
|
|
|
networking.firewall.allowedTCPPorts = [34197];
|
2022-10-17 13:56:48 +00:00
|
|
|
}
|