Skip to content

Commit 3f2ff79

Browse files
Add better logFile example and update doc
1 parent 42c41cd commit 3f2ff79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos-modules/valheim.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,16 @@ in {
7575
logFile = lib.mkOption {
7676
type = with lib.types; nullOr str;
7777
default = null;
78-
example = "/var/log/valheim-server.log";
78+
example = "/var/lib/valheim/log/valheim-server.log";
7979
description = lib.mdDoc ''
8080
The path where the server log file will be saved.
8181
8282
When set, this will redirect all logs from stdout to the specified path.
8383
This means that the logs will not be captured by systemd's journal.
8484
Leave this option unset to keep console logging enabled.
85+
86+
Make sure the valheim user has write access to the specified directory, otherwise
87+
the valheim service fail to start and exit.
8588
'';
8689
};
8790

0 commit comments

Comments
 (0)