os/hosts/chocolatebar/factorio/default.nix

39 lines
801 B
Nix
Raw Normal View History

2022-10-17 13:56:48 +00:00
{ config, pkgs, lib, self, ... }:
with lib;
let
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;
phases = [ "installPhase" ];
deps = [ ];
installPhase = ''
mkdir -p $out
cp $src far-reach_1.1.2.zip
'';
};
in
{
config = {
services.factorio = {
enable = true;
port = 34197; # The default, but make it explicit
lan = true;
admins = [
"doubtwriter"
"scottjive"
];
openFirewall = true;
autosave-interval = 3;
game-name = "Babes plays";
requireUserVerification = false;
mods = [
far-reach
];
};
};
}