···
# to garage 1.0.0 while relying on the module-level default, they would be left
# with a config which evaluates and builds, but then garage refuses to start
# because either replication_factor or replication_mode is required.
73
-
# This assertion can be removed in NixOS 24.11, when all users have been warned once.
73
+
# The replication_factor option also was `toString`'ed before, which is
74
+
# now not possible anymore, so we prompt the user to change it to a string
76
+
# These assertions can be removed in NixOS 24.11, when all users have been
assertion = (cfg.settings ? replication_factor || cfg.settings ? replication_mode) || lib.versionOlder cfg.package "1.0.0";
···
Please set replication_factor to 1 explicitly to preserve the previous behavior.
https://git.deuxfleurs.fr/Deuxfleurs/garage/src/tag/v1.0.0/doc/book/reference-manual/configuration.md#replication_factor
88
+
assertion = lib.isString (cfg.settings.replication_mode or "");
90
+
The explicit `replication_mode` option in `services.garage.settings`
91
+
has been removed and is now handled by the freeform settings in order
92
+
to allow it being completely absent (for Garage 1.x).
93
+
That module option previously `toString`'ed the value it's configured
94
+
with, which is now no longer possible.
96
+
You're still using a non-string here, please manually set it to
97
+
a string, or migrate to the separate setting keys introduced in 1.x.
99
+
Refer to https://garagehq.deuxfleurs.fr/documentation/working-documents/migration-1/
100
+
for the migration guide.