File tree Expand file tree Collapse file tree 1 file changed +27
-30
lines changed
nix-darwin/flakes/monolith Expand file tree Collapse file tree 1 file changed +27
-30
lines changed Original file line number Diff line number Diff line change 6969 git
7070 vim
7171 iptables
72- sysz
7372 ] ;
7473
7574 sops = {
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
You can’t perform that action at this time.
0 commit comments