forked from pub-solar/os
39 lines
801 B
Nix
39 lines
801 B
Nix
|
{ 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
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|