Skip to content

Commit ef5dd00

Browse files
committed
finally fixed
1 parent f61163c commit ef5dd00

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

nix-darwin/flakes/monolith/configuration.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"C /var/lib/factorio/saves/save1.zip - - - - ${builtins.path { path = ./save1.zip; }}"
9898
];
9999
services.factorio = {
100-
# bind = "";
100+
bind = "192.168.4.129";
101101
enable = true;
102102
public = true;
103103
username = builtins.readFile config.sops.secrets."admin".path;
@@ -106,15 +106,15 @@
106106
stateDirName = "factorio";
107107
extraSettingsFile = pkgs.writeText "server-settings.json" (
108108
builtins.toJSON {
109-
game-password = config.sops.secrets."game-password".path;
109+
game-password = builtins.readFile config.sops.secrets."game-password".path;
110110
}
111111
);
112112
extraSettings = {
113-
max_players = 64;
113+
max_players = 16;
114114
};
115-
autosave-interval = 15;
115+
autosave-interval = 20;
116116
# When not present in /var/lib/${config.services.factorio.stateDirName}/saves, a new map with default settings will be generated before starting the service.
117-
saveName = "save1.zip";
117+
saveName = "save1";
118118
game-name = "[NixOs] factorio";
119119
description = "Factorio on nixos";
120120
admins = [
@@ -125,11 +125,11 @@
125125
# networking
126126
networking = {
127127
defaultGateway = "192.168.4.1"; # Point to Proxmox
128-
nameservers = [ "8.8.8.8" ]; # Ensure DNS resolution
128+
nameservers = [ "192.168.1.1" ]; # Ensure DNS resolution
129129
hostName = meta.hostname; # Define your hostname.
130130
networkmanager.enable = true; # Easiest to use and most distros use this by default.
131131
firewall = {
132-
enable = true;
132+
enable = false;
133133
allowedUDPPorts = [ 34197 ]; # Explicitly open Factorio port
134134
allowedTCPPorts = [ 27015 ];
135135
};

0 commit comments

Comments
 (0)