Skip to content

Commit 3a68986

Browse files
Add preset flag
1 parent 0d3b29d commit 3a68986

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

nixos-modules/valheim.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ in {
8585
'';
8686
};
8787

88+
preset = lib.mkOption {
89+
type = lib.types.str; nullOr str;
90+
default = null;
91+
example = "hardcore";
92+
description = lib.mdDoc ''
93+
The preset world modifier, valid options are
94+
"easy", "hard", "hardcore", "casual", "hammer" and "immersive".
95+
'';
96+
};
97+
8898
password = lib.mkOption {
8999
type = lib.types.str;
90100
default = "";
@@ -251,6 +261,7 @@ in {
251261
]
252262
++ (lib.lists.optional cfg.crossplay "-crossplay")
253263
++ (lib.lists.optional (cfg.logFile != null) "-logFile \"${cfg.logFile}\"")
264+
++ (lib.lists.optional (cfg.preset != null) "-preset \"${cfg.preset}\"")
254265
};
255266
};
256267
};

0 commit comments

Comments
 (0)