os/hosts/chocolatebar/factorio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
906 B
Nix
Raw Permalink Normal View History

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 {
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-08-18 22:22:59 +00:00
networking.firewall.allowedUDPPorts = [34197];
networking.firewall.allowedTCPPorts = [34197];
2022-10-17 13:56:48 +00:00
}