Merge pull request #316836 from srhb/fix-garage-assert

nixos/garage: fix replication 1.0 assertion

authored by Florian Klink and committed by GitHub c149b881 e4714bc0

+1 -1
+1 -1
nixos/modules/services/web-servers/garage.nix
··· 83 83 # These assertions can be removed in NixOS 24.11, when all users have been 84 84 # warned once. 85 85 { 86 - assertion = (cfg.settings ? replication_factor || cfg.settings ? replication_mode) || lib.versionOlder cfg.package "1.0.0"; 86 + assertion = (cfg.settings ? replication_factor || cfg.settings ? replication_mode) || lib.versionOlder cfg.package.version "1.0.0"; 87 87 message = '' 88 88 Garage 1.0.0 requires an explicit replication factor to be set. 89 89 Please set replication_factor to 1 explicitly to preserve the previous behavior.