refactor(nixos): keep Valheim server private

This commit is contained in:
2026-09-10 08:15:33 -04:00
parent 7972549230
commit f26cc10ef6

View File

@@ -42,11 +42,6 @@
description = "Valheim server password."; 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 ( config = lib.mkIf config.modules.services.games.valheim.enable (
@@ -74,7 +69,7 @@
"-password" "-password"
service.password service.password
"-public" "-public"
(if service.public then "1" else "0") "0"
]; ];
udpPorts = [ udpPorts = [
service.port service.port