From 1b22321e8609e520dd05c8dd4e88efab8f0c20ae Mon Sep 17 00:00:00 2001 From: sebkiro <225845180+sebkiro@users.noreply.github.com> Date: Wed, 10 Sep 2025 09:49:59 +0200 Subject: [PATCH] nixos/patroni: fix documentation link for settings and add example --- .../modules/services/cluster/patroni/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/cluster/patroni/default.nix b/nixos/modules/services/cluster/patroni/default.nix index c304a266967a..aa44adb9b02c 100644 --- a/nixos/modules/services/cluster/patroni/default.nix +++ b/nixos/modules/services/cluster/patroni/default.nix @@ -148,8 +148,21 @@ in settings = lib.mkOption { type = format.type; default = { }; + example = { + bootstrap = { + initdb = [ + "encoding=UTF-8" + "data-checksums" + ]; + }; + postgresql = { + parameters = { + unix_socket_directories = "/tmp"; + }; + }; + }; description = '' - The primary patroni configuration. See the [documentation](https://patroni.readthedocs.io/en/latest/SETTINGS.html) + The primary patroni configuration. See the [documentation](https://patroni.readthedocs.io/en/latest/yaml_configuration.html) for possible values. Secrets should be passed in by using the `environmentFiles` option. '';