Skip to content

Commit

Permalink
nixos/garage: drop replication_mode setting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
flokli committed May 6, 2024
1 parent 72a42d2 commit 8950e22
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nixos/modules/services/web-servers/garage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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: <https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#replication-mode> for reference.";
};
};
};
description = "Garage configuration, see <https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/> for reference.";
Expand Down

0 comments on commit 8950e22

Please sign in to comment.