about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-06-03 11:14:03 +0300
committerGitHub <noreply@github.com>2024-06-03 11:14:03 +0300
commitc149b8818b982d612f519c7e73449d355206a89a (patch)
tree4b5dcea65e96675b15a7d7af1c838090d95e45e8 /nixos/modules
parente4714bc0c10850ffee4c58910d3f8692c3613aa4 (diff)
parentf7393d13fe676bc74cc015838a248493439a9041 (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.nix2
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.