diff options
author | Florian Klink <flokli@flokli.de> | 2024-06-03 11:14:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 11:14:03 +0300 |
commit | c149b8818b982d612f519c7e73449d355206a89a (patch) | |
tree | 4b5dcea65e96675b15a7d7af1c838090d95e45e8 /nixos/modules | |
parent | e4714bc0c10850ffee4c58910d3f8692c3613aa4 (diff) | |
parent | f7393d13fe676bc74cc015838a248493439a9041 (diff) |
Merge pull request #316836 from srhb/fix-garage-assert
nixos/garage: fix replication 1.0 assertion
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-servers/garage.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/garage.nix b/nixos/modules/services/web-servers/garage.nix index 8d1966aee091b..7cf71ff6ff06f 100644 --- a/nixos/modules/services/web-servers/garage.nix +++ b/nixos/modules/services/web-servers/garage.nix @@ -83,7 +83,7 @@ in # These assertions can be removed in NixOS 24.11, when all users have been # warned once. { - assertion = (cfg.settings ? replication_factor || cfg.settings ? replication_mode) || lib.versionOlder cfg.package "1.0.0"; + assertion = (cfg.settings ? replication_factor || cfg.settings ? replication_mode) || lib.versionOlder cfg.package.version "1.0.0"; message = '' Garage 1.0.0 requires an explicit replication factor to be set. Please set replication_factor to 1 explicitly to preserve the previous behavior. |