From 8950e22d8cb1c554b730633bd197c3990979033f Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 6 May 2024 23:11:20 +0300 Subject: [PATCH] nixos/garage: drop replication_mode setting This got broken up into separate `replication_factor` and `consistency_mode` settings with Garage 1.x, and due to the the "none" default kicking in, Garage fails to startup with > : Error: Either the legacy replication_mode or replication_level and consistency_mode can be set, not both. if we actually make the migratiom as documented in the migration guide. Drop this explicit setting, so users can set replication_mode or replication_factor/consistency_mode, depending on the version they're using. --- nixos/modules/services/web-servers/garage.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nixos/modules/services/web-servers/garage.nix b/nixos/modules/services/web-servers/garage.nix index 39ea8f21b126f..24794651bb933 100644 --- a/nixos/modules/services/web-servers/garage.nix +++ b/nixos/modules/services/web-servers/garage.nix @@ -52,13 +52,6 @@ in type = types.path; description = "The main data storage, put this on your large storage (e.g. high capacity HDD)"; }; - - replication_mode = mkOption { - default = "none"; - type = types.enum ([ "none" "1" "2" "3" "2-dangerous" "3-dangerous" "3-degraded" 1 2 3 ]); - apply = v: toString v; - description = "Garage replication mode, defaults to none, see: for reference."; - }; }; }; description = "Garage configuration, see for reference.";