From e4e9f79a09d95a7378b9bc2ef3ee8ee5c4d0b0bc Mon Sep 17 00:00:00 2001 From: liberodark Date: Tue, 5 Nov 2024 07:30:14 +0100 Subject: [PATCH] Fix Ceph Mon Add possibility to set : "mon.node1" = { "public_addr" = "10.10.10.1"; }; --- nixos/modules/services/network-filesystems/ceph.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/network-filesystems/ceph.nix b/nixos/modules/services/network-filesystems/ceph.nix index 5961731dbf446..104913cdebdfd 100644 --- a/nixos/modules/services/network-filesystems/ceph.nix +++ b/nixos/modules/services/network-filesystems/ceph.nix @@ -230,8 +230,15 @@ in }; package = lib.mkPackageOption pkgs "ceph" { }; extraConfig = lib.mkOption { - type = with lib.types; attrsOf str; + type = with lib.types; attrsOf (attrsOf str); default = {}; + example = lib.literalExpression '' + { + # This would create a section for a radosgw daemon named node0 and related + # configuration for it + "mon.node0" = { "some config option" = "true"; }; + }; + ''; description = '' Extra configuration to add to the monitor section. '';