refactor(nixos): keep Valheim server private
This commit is contained in:
@@ -42,11 +42,6 @@
|
||||
description = "Valheim server password.";
|
||||
};
|
||||
|
||||
public = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether to list the server publicly.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.modules.services.games.valheim.enable (
|
||||
@@ -74,7 +69,7 @@
|
||||
"-password"
|
||||
service.password
|
||||
"-public"
|
||||
(if service.public then "1" else "0")
|
||||
"0"
|
||||
];
|
||||
udpPorts = [
|
||||
service.port
|
||||
|
||||
Reference in New Issue
Block a user