refactor(nixos): keep Valheim server private
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user