File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 6666 default = true ;
6767 description = lib . mdDoc ''
6868 Toggles visibility on the Steam server & community lists.
69+
6970 When not set, defaults to true (visible).
7071 Set to false to make the server private.
7172 '' ;
7273 } ;
7374
75+ logFile = lib . mkOption {
76+ type = with lib . types ; nullOr str ;
77+ default = null ;
78+ example = "/var/log/valheim-server.log" ;
79+ description = lib . mdDoc ''
80+ The path where the server log file will be saved.
81+
82+ When set, this will redirect all logs from stdout to the specified path.
83+ This means that the logs will not be captured by systemd's journal.
84+ Leave this option unset to keep console logging enabled.
85+ '' ;
86+ } ;
87+
7488 password = lib . mkOption {
7589 type = lib . types . str ;
7690 default = "" ;
236250 "-public ${ if cfg . public then "1" else "0" } "
237251 ]
238252 ++ ( lib . lists . optional cfg . crossplay "-crossplay" )
253+ ++ ( lib . lists . optional ( cfg . logFile != null ) "-logFile \" ${ cfg . logFile } \" " )
239254 } ;
240255 } ;
241256 } ;
You can’t perform that action at this time.
0 commit comments