Merge pull request #223439 from mjlbach/fix/garage

garage: fix missing stateVersion and default pkg
This commit is contained in:
Ryan Lahfa 2023-03-28 00:26:47 +02:00 committed by GitHub
commit 6fcf40805a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ in
package = mkOption {
# TODO: when 23.05 is released and if Garage 0.9 is the default, put a stateVersion check.
default = if versionAtLeast stateVersion "23.05" then pkgs.garage_0_8_0
default = if versionAtLeast config.system.stateVersion "23.05" then pkgs.garage_0_8
else pkgs.garage_0_7;
defaultText = literalExpression "pkgs.garage_0_7";
type = types.package;