Skip to content

Commit 2bc0c75

Browse files
committed
update
1 parent 164747e commit 2bc0c75

File tree

1 file changed

+27
-30
lines changed

1 file changed

+27
-30
lines changed

nix-darwin/flakes/monolith/configuration.nix

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
git
7070
vim
7171
iptables
72-
sysz
7372
];
7473

7574
sops = {
@@ -106,39 +105,37 @@
106105
in
107106
{
108107
factorio = prev.factorio.override {
109-
version = version;
110-
sha256 = sha256;
111-
url = url;
112-
};
113-
114-
services.factorio = {
115-
bind = "192.168.4.129";
116-
package = final.factorio;
117-
enable = true;
118-
public = true;
119-
username = builtins.readFile config.sops.secrets."admin".path;
120-
token = builtins.readFile config.sops.secrets."token".path;
121-
openFirewall = true;
122-
stateDirName = "factorio";
123-
extraSettingsFile = pkgs.writeText "server-settings.json" (
124-
builtins.toJSON {
125-
game-password = builtins.readFile config.sops.secrets."game-password".path;
126-
}
127-
);
128-
extraSettings = {
129-
max_players = 16;
130-
};
131-
autosave-interval = 20;
132-
saveName = "save1";
133-
game-name = "[NixOs] factorio";
134-
description = "Factorio on nixos";
135-
admins = [
136-
(builtins.readFile config.sops.secrets."admin".path)
137-
];
108+
inherit version sha256 url;
138109
};
139110
}
140111
)
141112
];
113+
114+
services.factorio = {
115+
bind = "192.168.4.129";
116+
package = pkgs.factorio;
117+
enable = true;
118+
public = true;
119+
username = builtins.readFile config.sops.secrets."admin".path;
120+
token = builtins.readFile config.sops.secrets."token".path;
121+
openFirewall = true;
122+
stateDirName = "factorio";
123+
extraSettingsFile = pkgs.writeText "server-settings.json" (
124+
builtins.toJSON {
125+
game-password = builtins.readFile config.sops.secrets."game-password".path;
126+
}
127+
);
128+
extraSettings = {
129+
max_players = 16;
130+
};
131+
autosave-interval = 20;
132+
saveName = "save1";
133+
game-name = "[NixOs] factorio";
134+
description = "Factorio on nixos";
135+
admins = [
136+
(builtins.readFile config.sops.secrets."admin".path)
137+
];
138+
};
142139
# networking
143140
networking = {
144141
defaultGateway = "192.168.4.1"; # Point to Proxmox

0 commit comments

Comments
 (0)